Go to: Synopsis. Return value. Flags. Python examples.


subdMapSewMove( selectionList , [constructionHistory=boolean], [limitPieceSize=boolean], [name=string], [numberFaces=int])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

subdMapSewMove is undoable, queryable, and editable.

This command can be used to Move and Sew together separate UV pieces along geometric edges. UV pieces that correspond to the same geometric edge, are merged together by moving the smaller piece to the larger one.

The argument is a UV selection list.

Return value

stringThe node name.

In query mode, return type is based on queried flag.


constructionHistory, limitPieceSize, name, numberFaces
Long name (short name) Argument types Properties
limitPieceSize(lps) boolean createqueryedit
When on, this flag tells that the face number limit described above should be used.
numberFaces(nf) int createqueryedit
Maximum number of faces in a UV piece. When trying to combine two UV pieces into a single one, the merge operation is rejected if the smaller piece has more faces than the number specified by this flag.
This flag is only used when limitPieceSize is set to on.
Common flags
name(n) string create
Name the resulting object.
constructionHistory(ch) boolean createquery
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.

Python examples

import maya.cmds as cmds

# Create a subd sphere with default UVs.
import maya.mel as mel
mel.eval( "createSubdSphere" )

# Automatic projections with 6 planes.
cmds.subdAutoProjection( 'subdivSphere1.smf[*][*]' )

# Select the seams
cmds.select( 'subdivSphere1.sme[0:1][67108864]', 'subdivSphere1.sme[256][67108867]', 'subdivSphere1.sme[513][67108864]' )

# merge them, with the appropriate move.