ジャンプ先: 概要. 戻り値. フラグ. Python 例.
polySplitCtx2([adjustEdgeFlow=float], [constrainToEdges=boolean], [edgeMagnets=int], [exists=boolean], [image1=string], [image2=string], [image3=string], [insertWithEdgeFlow=boolean], [snapTolerance=float], [snappedToEdgeColor=[float, float, float]], [snappedToFaceColor=[float, float, float]], [snappedToMagnetColor=[float, float, float]], [snappedToVertexColor=[float, float, float]])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
polySplitCtx2 は、取り消し可能、照会可能、および編集可能です。
新しいコンテキストを作成し、ポリゴン オブジェクトでファセットを分割します。なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
exists(ex)
|
boolean
|
|
||
|
||||
image1(i1)
|
string
|
|
||
|
||||
image2(i2)
|
string
|
|
||
|
||||
image3(i3)
|
string
|
|
||
|
||||
| Flags from nodes | ||||
adjustEdgeFlow(aef)
|
float
|
|
||
|
||||
constrainToEdges(cte)
|
boolean
|
|
||
|
||||
edgeMagnets(em)
|
int
|
|
||
|
||||
insertWithEdgeFlow(ief)
|
boolean
|
|
||
|
||||
snapTolerance(st)
|
float
|
|
||
|
||||
snappedToEdgeColor(sec)
|
[float, float, float]
|
|
||
|
||||
snappedToFaceColor(sfc)
|
[float, float, float]
|
|
||
|
||||
snappedToMagnetColor(smc)
|
[float, float, float]
|
|
||
|
||||
snappedToVertexColor(svc)
|
[float, float, float]
|
|
||
|
||||
import maya.cmds as cmds
# Create a poly plane
cmds.polyPlane(w=10, h=10, sx=1, sy=1, n='pPlane1')
# Create a new poly split context, then switch to it
cmds.polySplitCtx2('polySplitCtx2')
cmds.setToolTo('polySplitCtx2')