pymel.core.modeling.polyEditUVShell¶
- polyEditUVShell(*args, **kwargs)¶
Command edits uv shells on polygonal objects. When used with the query flag, it returns the transformation values associated with the specified components.
Flags:
Long Name / Short Name Argument Types Properties angle / a float Specifies the angle value (in degrees) that the uv values are to be rotated by. pivotU / pu float Specifies the pivot value, in the u direction, about which the scale or rotate is to be performed. pivotV / pv float Specifies the pivot value, in the v direction, about which the scale or rotate is to be performed. relative / r bool Specifies whether this command is editing the values relative to the currently existing values. Default is true; rotateRatio / rr float Specifies the ratio value that the uv values are to be rotated by Default is 1.0 rotation / rot bool Specifies whether this command is editing the values with rotation values scale / s bool Specifies whether this command is editing the values with scale values scaleU / su float Specifies the scale value in the u direction. scaleV / sv float Specifies the scale value in the v direction. uValue / u float Specifies the value, in the u direction - absolute if relative flag is false.. uvSetName / uvs unicode Specifies the name of the uv set to edit uvs on. If not specified will use the current uv set if it exists. vValue / v float Specifies the value, in the v direction - absolute if relative flag is false.. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.polyEditUVShell
Example:
import pymel.core as pm # To query the u and v values of selected uvs: pm.polyEditUVShell( query=True ) # To tweak the u and v values of selected uvs: pm.polyEditUVShell( relative=True, uValue=0.05925926, vValue=0.05555556 ) # To rotate selected uv points about a pivot: pm.polyEditUVShell( pivotU=0.5, pivotV=0.5, angle=-15 )