ジャンプ先: 概要. 戻り値. フラグ. MEL 例.

概要

launchImageEditor [-editImageFile string] [-viewImageFile string] [filename]

launchImageEditor は、取り消し可能、照会不可能、および編集不可能です。

指定したイメージ ファイルを編集/表示するために、適切なアプリケーションを起動します。このコマンドは、Macintosh および Windows プラットフォームのみで動作します。

戻り値

なし

フラグ

editImageFile, viewImageFile
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
-editImageFile(-eif) string create
ファイルが PSD の場合は、Photoshop の指定したバージョンを起動してファイルを開きます。ファイルがその他のイメージ タイプであれば、お好みのイメージ エディタを起動してファイルを開きます。
-viewImageFile(-vif) string create
イメージを表示するためのイメージ エディタを開きます。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます コマンド内でフラグを複数回使用できます。

MEL 例

// Create a blinn shader with a psd file texture.
shadingNode -asShader blinn;
sets -renderable true -noSurfaceShader true -empty -name "blinn1SG";
connectAttr -f blinn1.outColor blinn1SG.surfaceShader;
shadingNode -asTexture psdFileTex;
connectAttr -f psdFileTex1.outColor blinn1.color;
setAttr psdFileTex1.fileTextureName -type "string" "C:/test.psd";

// Create a poly plane, and assign the blinn shader to it.
polyPlane -w 10 -h 10 -sx 10 -sy 10 -n pPlane1;
sets -e -forceElement blinn1SG;

// Now you can launch Photoshop to edit this psd texture file
launchImageEditor -eif `getAttr psdFileTex1.fileTextureName`;