ジャンプ先: 概要. 戻り値. フラグ. 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')