Performs selection operations on NURBS objects.If any of the border flags is set, then the appropriate borders are selected. Otherwise the current CV selection is used, or all CVs if the surfaces is selected as an object.The growSelection, shrinkSelection, borderSelection flags are then applied in that order.In practice, it is recommended to use one flag at a time, except for the border flags.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
borderSelection (bs) | bool | ||
|
|||
bottomBorder (bb) | bool | ||
|
|||
growSelection (gs) | int | ||
|
|||
leftBorder (lb) | bool | ||
|
|||
rightBorder (rb) | bool | ||
|
|||
shrinkSelection (ss) | int | ||
|
|||
topBorder (tb) | bool | ||
|
Derived from mel command maya.cmds.nurbsSelect
Example:
import pymel.core as pm
# Create a Nurbs plane.
pm.nurbsPlane( u=5, v=7 )
# Result: [nt.Transform(u'nurbsPlane1'), nt.MakeNurbPlane(u'makeNurbPlane1')] #
# Select it top and bottom CVs.
pm.nurbsSelect( topBorder=True, bottomBorder=True )
# Expand the selection to 3 rows.
pm.nurbsSelect( growSelection=3 )
# Select only the outline of the rows.
pm.nurbsSelect( borderSelection=True )