Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

createLayeredPsdFile([imageFileName=[string, string, string]], [psdFileName=string], [xResolution=uint], [yResolution=uint])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

createLayeredPsdFile is undoable, NOT queryable, and NOT editable.

Creates a layered PSD file with image names as input to individual layers

Return value

None

Flags

imageFileName, psdFileName, xResolution, yResolution
Long name (short name) Argument types Properties
imageFileName(ifn) [string, string, string] createmultiuse
Layer name, blend mode, Image file name The image in the file will be transferred to layer specified. The image file specified can be in any of the formats supported by maya (ex. iff, jpg, gif, tif etc.). The blend mode options are : "Normal", "Dissolve", "Dark", "Multiply", "Color Burn", "Linear Burn", "Lighten", "Screen", "Color Dodge", "Linear Dogde", "Overlay", "Soft Light", "Hard Light", "Dissolve", "Vivid Light", "Linear Light", "Pin Light", "Hard Mix", "Difference", "Exclusion", "Hue", "Saturation", "Color", "Luminosity"
psdFileName(psf) string create
PSD file name.
xResolution(xr) uint create
X - resolution of the image.
yResolution(yr) uint create
Y - resolution of the image.

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.

Python examples

import maya.cmds as cmds

# Creates a layered PSD file with "Layer 1" as one of the layers. The image which
# gets transfered to "Layer 1" is picked from D:/test.iff. The blend mode assigned to
# is the "Normal" mode.
cmds.createLayeredPsdFile( 'D:/test.psd', xr=640, yr=480, ifn=('D:/test.iff', 'Normal', 'Layer 1') )