Go to: Synopsis. Return value. Keywords. Related. Flags. Python examples.
nurbsUVSet([create=boolean], [useExplicit=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
nurbsUVSet is undoable, queryable, and editable.
Allows user to toggle between implicit and explicit UVs on a NURBS object. Also provides a facility to create, delete, rename and set the current explicit UVSet. An implicit UVSet is non-editable. It uses the parametric make-up of the NURBS object to determine the location of UVs (isoparm intersections). NURBS objects also support explicit UVSets which are similar to the UVs of a polygonal object. UVs are created at the knots (isoparm intersections) of the object and are fully editable. In order to access UV editing capabilities on a NURBS object an explicit UVSet must be created and set as the current UVSet.| boolean | Success or Failure. |
In query mode, return type is based on queried flag.
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
create(c)
|
boolean
|
|
||
|
||||
useExplicit(ue)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds result = cmds.sphere() shape = result[0] cmds.select(shape, r=True) # Create and activate a UV set cmds.nurbsUVSet(create=True) cmds.nurbsUVSet(useExplicit=True) cmds.select(shape+".cv[3:5][2:4]", r=True) # Rotate the UVs by 45 degrees cmds.nurbsEditUV(angle=45)