Go to: Synopsis. Flags. Return value. Related. Python examples.
polyMapSew([constructionHistory=boolean], [name=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
polyMapSew is undoable, queryable, and editable.
Sew border edges in texture space. Selected edges must be map borders.| Long name (short name) | [argument types] | Properties | ||
|---|---|---|---|---|
name(n)
|
string
|
|
||
|
||||
constructionHistory(ch)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds #Opening the texture view will make this example much clearer. #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]' ) #Move the row cmds.polyMoveUV( 'plg.map[24:28]', 'plg.map[30:35]', 'plg.map[37]', t=(0.0, 0.5 )) #Now sew some border edges cmds.polyMapSew( 'plg.e[44]', 'plg.e[46]', 'plg.e[48]' )