Go to: Synopsis. Return value. Flags. Python examples.
psdTextureFile([channelRGB=[string, uint, uint, uint,
uint]], [channels=[string, uint,
boolean]], [imageFileName=[string, string,
uint]], [psdFileName=string], [snapShotImageName=string],
[uvSnapPostionTop=boolean],
[xResolution=uint], [yResolution=uint])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
psdTextureFile is undoable, NOT queryable, and NOT
editable.
Creates a Photoshop file with UVSnap shot image and the layer set
names as the input.
None
channelRGB, channels, imageFileName, psdFileName, snapShotImageName, uvSnapPostionTop, xResolution, yResolution
Long name (short name) |
Argument types |
Properties |
xResolution(xr) |
uint |
 |
|
X - resolution of the image. |
|
yResolution(yr) |
uint |
 |
|
Y - resolution of the image. |
|
channels(chs) |
[string, uint, boolean] |
  |
|
(M) Layer set names and index are given as input. This is a
multi use flag. A layer set with the given name will be created.
The second argument is the index which specifies the placement
order of layer sets in the created file. The third argument is a
boolean, if "true" a layer is created inside the layer set ,
"false" creates an empty layer set |
|
channelRGB(chc) |
[string, uint, uint, uint,
uint] |
  |
|
(M) Layer set names, index, red, green and blue values are
given as input. Using this flag, the layers created can be filled
with specified colors. This is a multi use flag. The index
specifies the placement order of layer sets in the created
file. |
|
imageFileName(ifn) |
[string, string, uint] |
  |
|
Image file name, Layerset name and index. The image in the file
will be transferred to layer set specified. The index specifies the
placement order of layer sets in the created psd file. The image
file specified can be in any of the formats supported by maya (ex.
iff, jpg, gif, tif etc.) |
|
psdFileName(psf) |
string |
 |
|
snapShotImageName(ssi) |
string |
 |
|
Image file name on the disk containing UV snapshot / reference
image. |
|
uvSnapPostionTop(uvt) |
boolean |
 |
|
Specifies the position of UV snapshot image layer in the PSD
file. "True" positions this layer at the top and "False" positions
the layer at the bottom next to the background layer in the PSD
file |
|
Flag can appear in Create mode of
command |
Flag can appear in Edit mode of command |
Flag can appear in Query mode of command |
Flag can have multiple arguments, passed
either as a tuple or a list. |
import maya.cmds as cmds
# Create a poly plane
cmds.polyPlane(w=10, h=10, sx=10, sy=10, n='pPlane1')
cmds.select('pPlane1')
# Create a snapshot file containing the UVs of pPlane1
cmds.uvSnapshot(n='C:\\uvSnapshot.iff', xr=512, yr=512, o=True)
# // Saved file: C:\uvSnapshot.iff #
# Create a Photoshop file containing a UV snapshot layer from UV snapshot file we have just created and an image layer from a disk image file
cmds.psdTextureFile(xr=512, yr=512, ifn=('C:\\tex.jpg', 'layerSet1', 1), ssi='C:\\uvSnapshot.iff', uvt=1, psf='C:\\final.psd')
# // Saved file: C:\final.psd #