pymel.core.rendering.createLayeredPsdFile

createLayeredPsdFile(*args, **kwargs)

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

Dynamic library stub function

Flags:
Long name (short name) Argument Types Properties
imageFileName (ifn) unicode, unicode, unicode ../../../_images/create.gif
 

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) unicode ../../../_images/create.gif
 
PSD file name.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.
xResolution (xr) int ../../../_images/create.gif
 
X - resolution of the image.
yResolution (yr) int ../../../_images/create.gif
 
Y - resolution of the image.

Derived from mel command maya.cmds.createLayeredPsdFile

Example:

import pymel.core as pm

# 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.
pm.createLayeredPsdFile( 'D:/test.psd', xr=640, yr=480, ifn=('D:/test.iff', 'Normal', 'Layer 1') )

Previous topic

pymel.core.rendering.convertTessellation

Next topic

pymel.core.rendering.createRenderLayer

Core

Core Modules

Other Modules

This Page