ジャンプ先: 概要. 戻り値. フラグ. Python 例.
launchImageEditor(
[filename]
, [editImageFile=string], [viewImageFile=string])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
launchImageEditor は、取り消し可能、照会不可能、および編集不可能です。
指定したイメージ ファイルを編集/表示するために、適切なアプリケーションを起動します。このコマンドは、Macintosh および Windows プラットフォームのみで動作します。なし
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
editImageFile(eif)
|
string
|
|
||
|
||||
viewImageFile(vif)
|
string
|
|
||
|
||||
import maya.cmds as cmds
# Create a blinn shader with a psd file texture.
cmds.shadingNode('blinn', asShader=True)
cmds.sets(renderable=True, noSurfaceShader=True, empty=True, name='blinn1SG')
cmds.connectAttr('blinn1.outColor', 'blinn1SG.surfaceShader', f=True)
cmds.shadingNode('psdFileTex', asTexture=True)
cmds.connectAttr('psdFileTex1.outColor', 'blinn1.color')
cmds.setAttr('psdFileTex1.fileTextureName', 'C:/test.psd', type='string')
# Create a poly plane, and assign the blinn shader to it.
cmds.polyPlane(w=10, h=10, sx=10, sy=10, n='pPlane1')
cmds.sets(e=True, forceElement='blinn1SG')
# Now you can launch Photoshop to edit this psd texture file
cmds.launchImageEditor(eif=cmds.getAttr('psdFileTex1.fileTextureName'))