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 度(開始時と終了時)表示されることで示されます。int[] | 選択したコンポーネントのリスト。 |
戻り値の型は照会モードでは照会フラグが基になります。
ロング ネーム(ショート ネーム) | 引数型 | プロパティ | ||
---|---|---|---|---|
edgeBorder(eb)
|
uint
|
![]() ![]() ![]() |
||
|
||||
edgeBorderPath(ebp)
|
[int, int]
|
![]() ![]() ![]() |
||
|
||||
edgeBorderPattern(bpt)
|
[int, int]
|
![]() ![]() ![]() |
||
|
||||
edgeRing(er)
|
uint
|
![]() ![]() ![]() |
||
|
||||
edgeRingPath(erp)
|
[int, int]
|
![]() ![]() ![]() |
||
|
||||
edgeRingPattern(rpt)
|
[int, int]
|
![]() ![]() ![]() |
||
|
||||
edgeLoop(el)
|
uint
|
![]() ![]() ![]() |
||
|
||||
edgeLoopPath(elp)
|
[int, int]
|
![]() ![]() ![]() |
||
|
||||
edgeLoopPattern(lpt)
|
[int, int]
|
![]() ![]() ![]() |
||
|
||||
edgeLoopOrBorder(elb)
|
uint
|
![]() ![]() ![]() |
||
|
||||
edgeLoopOrBorderPattern(lbp)
|
[int, int]
|
![]() ![]() ![]() |
||
|
||||
shortestEdgePath(sep)
|
[int, int]
|
![]() ![]() ![]() |
||
|
||||
shortestEdgePathUV(spu)
|
[int, int]
|
![]() ![]() ![]() |
||
|
||||
extendToShell(ets)
|
uint
|
![]() ![]() ![]() |
||
|
||||
noSelection(ns)
|
boolean
|
![]() ![]() |
||
|
||||
add(add)
|
boolean
|
![]() ![]() |
||
|
||||
addFirst(af)
|
boolean
|
![]() ![]() |
||
|
||||
replace(r)
|
boolean
|
![]() ![]() |
||
|
||||
deselect(d)
|
boolean
|
![]() ![]() |
||
|
||||
toggle(tgl)
|
boolean
|
![]() ![]() |
||
|
||||
asSelectString(ass)
|
boolean
|
![]() ![]() |
||
|
![]() |
![]() |
![]() |
![]() |
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) )