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 ../../../_images/create.gif
  Extract the border of the current CV selection.
bottomBorder / bb bool ../../../_images/create.gif
  Selects the bottom border of the surface (V=0).
growSelection / gs int ../../../_images/create.gif
  Grows the CV selection by the given number of CV
leftBorder / lb bool ../../../_images/create.gif
  Selects the left border of the surface (U=0).
rightBorder / rb bool ../../../_images/create.gif
  Selects the right border of the surface (U=MAX).
shrinkSelection / ss int ../../../_images/create.gif
  Shrinks the CV selection by the given number of CV
topBorder / tb bool ../../../_images/create.gif
  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 )