pymel.core.modeling.uvSnapshot

uvSnapshot(*args, **kwargs)

Builds an image containg the UVs of the selected objects.

Flags:
Long name (short name) Argument Types Properties
antiAliased (aa) bool ../../../_images/create.gif
 
When this flag is set, lines are antialiased.
blueColor (b) int ../../../_images/create.gif
 
Blue component of line drawing. Default is 255.
entireUVRange (euv) bool ../../../_images/create.gif
 
When this flag is set, the generated image will contain the entire uv range. Default is UV in 0-1 range.
fileFormat (ff) unicode ../../../_images/create.gif
 

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 ../../../_images/create.gif
 
Green component of line drawing. Default is 255.
name (n) unicode ../../../_images/create.gif
 
Name of the file to be created.
overwrite (o) bool ../../../_images/create.gif
 
When this flag is set, existing file can be ovewritten.
redColor (r) int ../../../_images/create.gif
 
Red component of line drawing. Default is 255.
uMax (umx) float ../../../_images/create.gif
 
Optional User Specified Max value for U. Default value is 1. This will take precedence over the “entire range” -euv flag.
uMin (umn) float ../../../_images/create.gif
 
Optional User Specified Min value for U. Default value is 0. This will take precedence over the “entire range” -euv flag.
uvSetName (uvs) unicode ../../../_images/create.gif
 
Name of the uv set to use. Default is the current one.
vMax (vmx) float ../../../_images/create.gif
 
Optional User Specified Max value for V. Default value is 1. This will take precedence over the “entire range” -euv flag.
vMin (vmn) float ../../../_images/create.gif
 
Optional User Specified Min value for V. Default value is 0. This will take precedence over the “entire range” -euv flag.
xResolution (xr) int ../../../_images/create.gif
 
Horizontal size of the image. Default is 512.
yResolution (yr) int ../../../_images/create.gif
 
Vertical size of the image. Default is 512.

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 )

Previous topic

pymel.core.modeling.untrim

Next topic

pymel.core.other

Core

Core Modules

Other Modules

This Page