ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
polyMirrorFace([axis=int], [axisDirection=int], [caching=boolean], [constructionHistory=boolean], [direction=int], [mergeMode=int], [mergeThreshold=linear], [mergeThresholdType=int], [mirrorAxis=int], [mirrorPosition=linear], [name=string], [nodeState=int], [pivot=[linear, linear, linear]], [pivotX=linear], [pivotY=linear], [pivotZ=linear], [worldSpace=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
polyMirrorFace は、取り消し可能、照会可能、および編集可能です。
選択したオブジェクトのフェースをすべてミラーリングします。
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
polyAppend, polyAppendVertex, polyBevel, polyChipOff, polyCreateFacet, polyExtrudeEdge, polySmooth, polySplit, polySplitVertex, polySubdivideEdge, polySubdivideFacet, polyTriangulate
axis, axisDirection, caching, constructionHistory, direction, mergeMode, mergeThreshold, mergeThresholdType, mirrorAxis, mirrorPosition, name, nodeState, pivot, pivotX, pivotY, pivotZ, worldSpace
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# Mirror about +X direction by merging the border vertices
cmds.polyCube( name='poly1' )
cmds.delete( 'poly1.f[4]' )
cmds.polyMirrorFace( 'poly1', direction=0, mergeMode=1 )
# Mirror about +Y direction by connecting the border edges
# in world reference, by explicitly specifying a pivot point (0, 2, 0)
cmds.polyCube( name='poly2' )
cmds.delete( 'poly2.f[4]' )
cmds.rotate( 0, 0, 45, 'poly2', r=True, os=True )
cmds.polyMirrorFace( 'poly2', direction=2, p=(0, 2, 0), mergeMode=2, worldSpace=1 )