pymel.core.modeling.nurbsSelect¶
- nurbsSelect(*args, **kwargs)¶
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.
Flags:
Long Name / Short Name Argument Types Properties borderSelection / bs bool
Extract the border of the current CV selection. bottomBorder / bb bool
Selects the bottom border of the surface (V=0). growSelection / gs int
Grows the CV selection by the given number of CV leftBorder / lb bool
Selects the left border of the surface (U=0). rightBorder / rb bool
Selects the right border of the surface (U=MAX). shrinkSelection / ss int
Shrinks the CV selection by the given number of CV topBorder / tb bool
Selects the top border of the patches (V=MAX). Flag can have multiple arguments, passed either as a tuple or a list. 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 )