ジャンプ先: 概要. 戻り値. フラグ. Python 例.
polyMapSewMove([caching=boolean], [constructionHistory=boolean], [limitPieceSize=boolean], [name=string], [nodeState=int], [numberFaces=int], [uvSetName=string], [worldSpace=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
polyMapSewMove は、取り消し可能、照会可能、および編集可能です。
このコマンドは、ジオメトリック エッジに沿って個々の UV ピースを移動したり縫合したりするために使用します。同じジオメトリック エッジに対応する UV ピースは、小さなピースをより大きなピースに移動することで マージされます。
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
caching, constructionHistory, limitPieceSize, name, nodeState, numberFaces, uvSetName, worldSpace
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# Build a plane
cmds.polyPlane()
# Map and move some faces. Scale them so that seams do not mathc any more
cmds.select( 'pPlane1.f[0:49]', r=True )
cmds.polyProjection( type='Planar' )
cmds.setAttr( 'polyPlanarProj1.rotateX', -90 )
cmds.setAttr( 'polyPlanarProj1.imageCenter', 0.630609, 0.38805)
cmds.setAttr( 'polyPlanarProj1.rotationAngle', 10 )
cmds.setAttr( 'polyPlanarProj1.imageScaleU', 1.2 )
cmds.setAttr( 'polyPlanarProj1.imageScaleV', 1.2 )
# Select the seams
cmds.select( 'pPlane1.e[105]', 'pPlane1.e[107]', 'pPlane1.e[109]', 'pPlane1.e[111]', 'pPlane1.e[113]', 'pPlane1.e[115]', 'pPlane1.e[117]', 'pPlane1.e[119]', 'pPlane1.e[121]', 'pPlane1.e[123]' )
# merge them back, with the appropriate move.
cmds.polyMapSewMove()