移動先: 概要 戻り値 フラグ. Python 例.

概要

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

注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。

createLayeredPsdFile は 「元に戻す」が可能、「照会」が不可能「編集」が不可能 です。

個々のレイヤにイメージ名を入力してレイヤ構造の PSD ファイルを作成します。

戻り値

なし

フラグ

imageFileName, psdFileName, xResolution, yResolution
ロング ネーム(ショート ネーム) 引数型 プロパティ
xResolution(xr) uint create
イメージの X 解像度。
yResolution(yr) uint create
イメージの Y 解像度。
imageFileName(ifn) [string, string, string] createmultiuse
レイヤ名、ブレンド モード、イメージ ファイル名。ファイル内のイメージを 指定されたレイヤに転送します。Maya でサポートされているフォーマットのファイル(iff、jpg、gif、tif など)であれば、すべてイメージ ファイルに指定できます。次のブレンド モード オプションがあります: 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 ファイル名。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : タプルまたはリストとして渡された複数の引数を持てるフラグ

Python 例

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') )