Builds an image containg the UVs of the selected objects.
Flags:
Long Name / Short Name | Argument Types | Properties | |
---|---|---|---|
antiAliased / aa | bool | ![]() |
|
|
|||
blueColor / b | int | ![]() |
|
|
|||
entireUVRange / euv | bool | ![]() |
|
|
|||
fileFormat / ff | unicode | ![]() |
|
Output file format. Any of those keyword: iff, sgi, pic, tif, als, gif, rla, jpgDefault is iff. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
greenColor / g | int | ![]() |
|
|
|||
name / n | unicode | ![]() |
|
|
|||
overwrite / o | bool | ![]() |
|
|
|||
redColor / r | int | ![]() |
|
|
|||
uMax / umx | float | ![]() |
|
|
|||
uMin / umn | float | ![]() |
|
|
|||
uvSetName / uvs | unicode | ![]() |
|
|
|||
vMax / vmx | float | ![]() |
|
|
|||
vMin / vmn | float | ![]() |
|
|
|||
xResolution / xr | int | ![]() |
|
|
|||
yResolution / yr | int | ![]() |
|
|
Derived from mel command maya.cmds.uvSnapshot
Example:
import pymel.core as pm
# Create a polygonal sphere
pm.polySphere()
# Result: [nt.Transform(u'pSphere1'), nt.PolySphere(u'polySphere1')] #
# Save the UVs in a image
pm.uvSnapshot( o=True, n='/tmp/uvImage2.iff', xr=256, yr=256 )