Go to: Synopsis. Return value. Related.
Flags. Python
examples.
subdMapCut([constructionHistory=boolean],
[name=string])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
subdMapCut is undoable, queryable, and editable.
Cut along edges of the texture mapping. The cut edges become map
borders.
In query mode, return type is based on queried flag.
polyClipboard, polyCylindricalProjection,
polyEditUV, polyForceUV, polyMapDel, polyMapSew, polyMoveFacetUV, polyMoveUV, polyPlanarProjection, polyProjection, polySphericalProjection,
polyUVSet, untangleUV
constructionHistory,
name
Long name (short name) |
Argument types |
Properties |
Common flags |
name(n) |
string |
 |
|
Name the resulting object. |
|
constructionHistory(ch) |
boolean |
  |
|
Turn the construction history on or off (where
applicable).
Q: When queried, this flag returns an int. |
|
Flag can appear in Create mode of
command |
Flag can appear in Edit mode of command |
Flag can appear in Query mode of command |
Flag can have multiple arguments, passed
either as a tuple or a list. |
import maya.cmds as cmds
# Opening up the textureView will make this example much easier to visualize.
# Create a cube
mel.eval( "createSubdCube" )
# Cut the map.
cmds.subdMapCut( 'subdivCube1.sme[2560][2]', 'subdivCube1.sme[2816][2]' )
# now that it's cut, we may move the row separately
# Move some UVs
cmds.subdEditUV( 'subdivCube1.smm[21:22]', 'subdivCube1.smm[25]', u=0, v=0.05 )