pymel.core.modeling.nurbsEditUV

nurbsEditUV(*args, **kwargs)

Command edits uvs on NURBS objects. When used with the query flag, it returns the uv values associated with the specified components.

Flags:
Long name (short name) Argument Types Properties
angle (a) float ../../../_images/create.gif ../../../_images/query.gif
 

Specifies the angle value (in degrees) that the uv values are to be rotated by.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

pivotU (pu) float ../../../_images/create.gif ../../../_images/query.gif
 
Specifies the pivot value, in the u direction, about which the scale or rotate is to be performed.
pivotV (pv) float ../../../_images/create.gif ../../../_images/query.gif
 
Specifies the pivot value, in the v direction, about which the scale or rotate is to be performed.
relative (r) bool ../../../_images/create.gif ../../../_images/query.gif
 
Specifies whether this command is editing the values relative to the currently existing values. Default is true;
rotation (rot) bool ../../../_images/create.gif ../../../_images/query.gif
 
Specifies whether this command is editing the values with rotation values
scale (s) bool ../../../_images/create.gif ../../../_images/query.gif
 
Specifies whether this command is editing the values with scale values
scaleU (su) float ../../../_images/create.gif ../../../_images/query.gif
 
Specifies the scale value in the u direction.
scaleV (sv) float ../../../_images/create.gif ../../../_images/query.gif
 
Specifies the scale value in the v direction.
uValue (u) float ../../../_images/create.gif ../../../_images/query.gif
 
Specifies the value, in the u direction - absolute if relative flag is false..
vValue (v) float ../../../_images/create.gif ../../../_images/query.gif
 
Specifies the value, in the v direction - absolute if relative flag is false..

Derived from mel command maya.cmds.nurbsEditUV

Example:

import pymel.core as pm

result = pm.sphere()
shape = result[0]
pm.select(shape, r=True)
pm.nurbsUVSet(create=True)
# Result: u'defaultExplicitUVSet' #
pm.nurbsUVSet(useExplicit=True)
# Result: True #
pm.select(shape+".cv[3:5][2:4]", r=True)
# Rotate the UVs by 45 degrees
pm.nurbsEditUV(angle=45)

Previous topic

pymel.core.modeling.nurbsCurveToBezier

Next topic

pymel.core.modeling.nurbsPlane

Core

Core Modules

Other Modules

This Page