移動先: 概要 戻り値 フラグ. Python 例.
psdEditTextureFile([addChannel=string], [addChannelColor=[string, float, float, float]], [addChannelImage=[string, string]], [deleteChannel=string], [psdFileName=string], [snapShotImage=string], [uvSnapPostionTop=boolean])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
psdEditTextureFile は 「元に戻す」が可能、「照会」が不可能、「編集」が不可能 です。
既存の PSD ファイルを編集します。チャンネル(レイヤ セット)の追加と削除がサポートされています。
なし
addChannel, addChannelColor, addChannelImage, deleteChannel, psdFileName, snapShotImage, uvSnapPostionTop
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: タプルまたはリストとして渡された複数の引数を持てるフラグ
|
import maya.cmds as cmds
# Create a Photoshop file with an image layer from a disk image file
cmds.psdTextureFile(xr=512, yr=512, ifn=('C:\\tex.jpg', 'layerSet1', 1), psf='C:\\final.psd')
# // Saved file: C:\final.psd #
# 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 #
# Edit the "final.psd" file which we have created, add a UV snapshot layer from snapshot file and an image layer from disk image file
cmds.psdEditTextureFile(aci=('layerSet2', 'C:\\tex1.jpg'), ssi='C:\\uvSnapshot.iff', uvt=1, psf='C:\\final.psd')