移動先: 概要 戻り値 フラグ Python の例
polySelect([add=boolean], [addFirst=boolean], [asSelectString=boolean], [deselect=boolean], [edgeBorder=uint], [edgeBorderPath=[int, int]], [edgeBorderPattern=[int, int]], [edgeLoop=uint], [edgeLoopOrBorder=uint], [edgeLoopOrBorderPattern=[int, int]], [edgeLoopPath=[int, int]], [edgeLoopPattern=[int, int]], [edgeRing=uint], [edgeRingPath=[int, int]], [edgeRingPattern=[int, int]], [extendToShell=uint], [noSelection=boolean], [replace=boolean], [shortestEdgePath=[int, int]], [shortestEdgePathUV=[int, int]], [toggle=boolean])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
polySelect は「元に戻す」が可能、「照会」が可能、「編集」が不可能です。
さまざまなタイプのポリゴン コンポーネントを選択します。戻り値は、
int 配列であり、選択した順番にコンポーネント ID を含みます。
特定の種類の選択が折り返し点に到達することは、
開始 ID が 2 度(開始時と終了時)表示されることで示されます。
戻り値の型は照会モードでは照会フラグが基になります。
add, addFirst, asSelectString, deselect, edgeBorder, edgeBorderPath, edgeBorderPattern, edgeLoop, edgeLoopOrBorder, edgeLoopOrBorderPattern, edgeLoopPath, edgeLoopPattern, edgeRing, edgeRingPath, edgeRingPattern, extendToShell, noSelection, replace, shortestEdgePath, shortestEdgePathUV, toggle
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: タプルまたはリストとして渡された複数の引数を持てるフラグ
|
import maya.cmds as cmds
cmds.polySelect( 'pCube1', edgeRing=1 )
cmds.polySelect( 'pCube1', toggle=True, edgeRingPath=(1, 10) )
cmds.polySelect( 'pCube1', ns=True, edgeRingPath=(1, 10) )
cmds.polySelect( 'pCube1', edgeRingPath=((1, 10), (11, 20)) )
cmds.polySelect( 'pPlane1', shortestEdgePath=(10, 100) )