Go to: Synopsis. Return value. Keywords.
Related. Flags.
Python examples.
nurbsEditUV([angle=float], [pivotU=float], [pivotV=float], [relative=boolean], [rotation=boolean], [scale=boolean], [scaleU=float], [scaleV=float], [uValue=float], [vValue=float])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
nurbsEditUV is undoable, queryable, and NOT editable.
Command edits uvs on NURBS objects. When used with the query flag,
it returns the uv values associated with the specified components.
boolean |
Success or Failure. |
In query mode, return type is based on queried flag.
nurbs, editUV, tweakUV, uvEditing
nurbsCopyUVSet, nurbsUVSet
angle, pivotU,
pivotV, relative, rotation,
scale, scaleU,
scaleV, uValue,
vValue
Long name (short name) |
Argument types |
Properties |
relative(r) |
boolean |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) |
|
Specifies whether this command is editing the values relative
to the currently existing values. Default is true; |
|
uValue(u) |
float |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) |
|
Specifies the value, in the u direction - absolute if relative
flag is false.. |
|
vValue(v) |
float |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) |
|
Specifies the value, in the v direction - absolute if relative
flag is false.. |
|
rotation(rot) |
boolean |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) |
|
Specifies whether this command is editing the values with
rotation values |
|
scale(s) |
boolean |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) |
|
Specifies whether this command is editing the values with scale
values |
|
pivotU(pu) |
float |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) |
|
Specifies the pivot value, in the u direction, about which the
scale or rotate is to be performed. |
|
pivotV(pv) |
float |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) |
|
Specifies the pivot value, in the v direction, about which the
scale or rotate is to be performed. |
|
scaleU(su) |
float |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) |
|
Specifies the scale value in the u direction. |
|
scaleV(sv) |
float |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) |
|
Specifies the scale value in the v direction. |
|
angle(a) |
float |
![create create](../gfx/create.gif) ![query query](../gfx/query.gif) |
|
Specifies the angle value (in degrees) that the uv values are
to be rotated by. |
|
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. |
import maya.cmds as cmds
result = cmds.sphere()
shape = result[0]
cmds.select(shape, r=True)
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)