pymel.core.modeling.polyEditUV

polyEditUV(*args, **kwargs)

Command edits uvs on polygonal 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.
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..
uvSetName (uvs) unicode ../../../_images/create.gif ../../../_images/query.gif
 

Specifies the name of the uv set to edit uvs on. If not specified will use the current uv set if it exists. Flag can have multiple arguments, passed either as a tuple or a list.

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.polyEditUV

Example:

import pymel.core as pm

# To query the u and v values of selected uvs:
pm.polyEditUV( query=True )
# To tweak the u and v values of selected uvs:
pm.polyEditUV( relative=True, uValue=0.05925926, vValue=0.05555556 )
# To set absolute values for u and v values of selected uvs:
pm.polyEditUV( relative=True, uValue=0.556, vValue=0.56 )
# To rotate selected uv points about a pivot:
pm.polyEditUV( pivotU=0.5, pivotV=0.5, angle=-15 )
# To scale selected uv points about a pivot:
pm.polyEditUV( pivotU=0.5, pivotV=0.5, scaleU=-0.06, scaleV=-0.06 )

Previous topic

pymel.core.modeling.polyDuplicateEdge

Next topic

pymel.core.modeling.polyEditUVShell

Core

Core Modules

Other Modules

This Page