Move border UVs along a simple curve.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
blendOriginal (bo) | float | ||
|
|||
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
Turn the construction history on or off (where applicable). If construction history is on then the corresponding node will be inserted into the history chain for the mesh. If construction history is off then the operation will be performed directly on the object. Note:If the object already has construction history then this flag is ignored and the node will always be inserted into the history chain. |
|||
curvature (c) | float | ||
How curved the UV path will be. 0 is a straight line. When the values is 1, the mid point of the curve will be moved away from a straight line by 1/2 the length of the UV segment. |
|||
gapTolerance (gt) | int | ||
|
|||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
Defines how to evaluate the node. 0: Normal1: PassThrough2: Blocking3: Internally disabled. Will return to Normal state when enabled4: Internally disabled. Will return to PassThrough state when enabled5: Internally disabled. Will return to Blocking state when enabledFlag can have multiple arguments, passed either as a tuple or a list. |
|||
preserveLength (pl) | float | ||
How much we want to respect the UV edge ratios. When the value is 1, we build new UV position along the desired curve, respecting the original UV spacings. When the value is 0, new UVs are equally spaced along the curve. |
|||
uvSetName (uvs) | unicode | ||
|
|||
worldSpace (ws) | bool | ||
Derived from mel command maya.cmds.polyStraightenUVBorder
Example:
import pymel.core as pm
# Create a plane and select it.
pm.polyPlane()
pm.select( 'pPlane1.map[0:65]', r=True )
# Straighten half the border
pm.polyStraightenUVBorder()