This command makes different types of poly component selections. The return value is an integer array containing the id’s of the components in the selection in order. If a given type of selection loops back on itself then this is indicated by the start id appearing twice, once at the start and once at the end.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
add (add) | bool | ||
|
|||
addFirst (af) | bool | ||
|
|||
asSelectString (ass) | bool | ||
Changes the return type from an integer array to a string array which can be used as a selection string.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
deselect (d) | bool | ||
|
|||
edgeBorder (eb) | int | ||
|
|||
edgeBorderPath (ebp) | int, int | ||
|
|||
edgeBorderPattern (bpt) | int, int | ||
Given two edges on the same border, this will check how many edges there are between the given edges and then continue that pattern of selection around the border. |
|||
edgeLoop (el) | int | ||
|
|||
edgeLoopOrBorder (elb) | int | ||
|
Given two edges either on the same edge loop or on the same edge border, this will check how many edges there are between the given edges and then continue that pattern of selection around the edge loop or edge border. |
|||
edgeLoopPath (elp) | int, int | ||
|
|||
edgeLoopPattern (lpt) | int, int | ||
Given two edges on the same edge loop, this will check how many edges there are between the given edges and then continue that pattern of selection around the edge loop. |
|||
edgeRing (er) | int | ||
|
|||
edgeRingPath (erp) | int, int | ||
|
|||
edgeRingPattern (rpt) | int, int | ||
Given two edges on the same edge ring, this will check how many edges there are between the given edges and then continue that pattern of selection around the edge ring. |
|||
edgeUVLoopOrBorder (euv) | int | ||
|
|||
everyN (en) | int | ||
extendToShell (ets) | int | ||
|
|||
noSelection (ns) | bool | ||
|
|||
replace (r) | bool | ||
|
|||
shortestEdgePath (sep) | int, int | ||
|
|||
shortestEdgePathUV (spu) | int, int | ||
|
|||
shortestFacePath (sfp) | int, int | ||
|
|||
toggle (tgl) | bool | ||
Indicates that those items on the given list which are on the active list should be removed from the active list and those items on the given list which are not on the active list should be added to the active list. |
Derived from mel command maya.cmds.polySelect
Example:
import pymel.core as pm
import maya.cmds as cmds
pm.polySelect( 'pCube1', edgeRing=1 )
pm.polySelect( 'pCube1', toggle=True, edgeRingPath=(1, 10) )
pm.polySelect( 'pCube1', ns=True, edgeRingPath=(1, 10) )
pm.polySelect( 'pCube1', edgeRingPath=((1, 10), (11, 20)) )
pm.polySelect( 'pPlane1', shortestEdgePath=(10, 100) )