ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
polyMergeFacetCtx([activeNodes=boolean], [caching=boolean], [constructionHistory=boolean], [exists=boolean], [firstFacet=int], [image1=string], [image2=string], [image3=string], [immediate=boolean], [mergeMode=int], [name=string], [nodeState=int], [previous=boolean], [reset=boolean], [secondFacet=int], [toolNode=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
polyMergeFacetCtx は、取り消し可能、照会可能、および編集可能です。
2 番目のフェースが 1 番目のフェースの穴になります。
新しく穴の開いたフェースは、モードによって、最初か最後、または選択したフェースの間に配置されます。
両方のフェースは、同じオブジェクトに属す必要があります。
ファセット フラグは必須です。
新しいコンテキストを作成し、ポリゴン オブジェクトでファセットをマージします。
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
polyCloseBorder, polyCollapseEdge, polyCollapseFacet, polyDelEdge, polyDelFacet, polyDelVertex, polyMergeEdge, polyMergeVertex, polyQuad, polyReduce, polySewEdge
activeNodes, caching, constructionHistory, exists, firstFacet, image1, image2, image3, immediate, mergeMode, name, nodeState, previous, reset, secondFacet, toolNode
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
cmds.polyPlane( n='plg', h=10, w=10, sx=5, sy=5 )
cmds.polyChipOff( 'plg.f[16]', 'plg.f[18]', 'plg.f[7]', dup=1, ltz=1, ls=(.5, .5, .5) )
# First
cmds.polyMergeFacet( 'plg', mm=0, ff=16, sf=26 )
# A new face with face #16 as an outer loop and face #26 as a hole
# is replacing faces #16 and #26, and is located on face #16
# Between
cmds.polyMergeFacet( 'plg', mm=1, ff=7, sf=25 )
# A new face with face #7 as an outer loop and face #25 as a hole
# is replacing faces #7 and #25, and is located in between.
# Last
cmds.polyMergeFacet( 'plg', mm=2, ff=18, sf=25 )
# A new face with face #18 as an outer loop and face #25 as a hole
# is replacing faces #18 and #25, and is located on face #25
# Create a poly plane
cmds.polyPlane(w=10, h=10, sx=10, sy=10, n='pPlane1')
# Create a new poly merge facet context, set the merge mode to merging the second face to the first face, then switch to it
cmds.polyMergeFacetCtx('polyMergeFacetCtx1', mm=0)
cmds.setToolTo('polyMergeFacetCtx1')