Go to: Synopsis. Flags. Return value. Related. Python examples.
polyMapCut([constructionHistory=boolean], [name=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
polyMapCut is undoable, queryable, and editable.
Cut along edges of the texture mapping. The cut edges become map borders.| Long name (short name) | [argument types] | Properties | ||
|---|---|---|---|---|
name(n)
|
string
|
|
||
|
||||
constructionHistory(ch)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds
#Opening up the textureView will make this example
#much easier to visualize.
#Create a plane and select it.
cmds.polyPlane( n='plg', sx=5, sy=5, w=10, h=10 )
cmds.select( 'plg' )
#Display map borders.
cmds.polyOptions( ao=True, dmb=True )
#Cut the map.
cmds.polyMapCut( 'plg.e[44]', 'plg.e[46]', 'plg.e[48]', 'plg.e[50]', 'plg.e[52]' )
#now that it's cut, we may move the row separately
#Move some UVs
cmds.polyMoveUV('plg.map[24:28]', 'plg.map[30:35]', 'plg.map[37]', tv=0.3 )