Builds an image containg the UVs of the selected objects.
| 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”, “jpg” Default is iff.Flag can appear in Create mode of commandFlag 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
import maya.cmds as cmds
# 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 )