Go to: Synopsis. Return value. Keywords. Related. Flags. Python examples.


nurbsSelect([borderSelection=boolean], [bottomBorder=boolean], [growSelection=int], [leftBorder=boolean], [rightBorder=boolean], [shrinkSelection=int], [topBorder=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

nurbsSelect is NOT undoable, NOT queryable, and NOT editable.

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.

Return value



texture, uv, image




borderSelection, bottomBorder, growSelection, leftBorder, rightBorder, shrinkSelection, topBorder
Long name (short name) Argument types Properties
leftBorder(lb) boolean create
Selects the left border of the surface (U=0).
rightBorder(rb) boolean create
Selects the right border of the surface (U=MAX).
bottomBorder(bb) boolean create
Selects the bottom border of the surface (V=0).
topBorder(tb) boolean create
Selects the top border of the patches (V=MAX).
growSelection(gs) int create
Grows the CV selection by the given number of CV
shrinkSelection(ss) int create
Shrinks the CV selection by the given number of CV
borderSelection(bs) boolean create
Extract the border of the current CV selection.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

# Create a Nurbs plane.
cmds.nurbsPlane( u=5, v=7 )
# Select it top and bottom CVs.
cmds.nurbsSelect( topBorder=True, bottomBorder=True )
# Expand the selection to 3 rows.
cmds.nurbsSelect( growSelection=3 )
# Select only the outline of the rows.
cmds.nurbsSelect( borderSelection=True )