移動先: 概要 戻り値 フラグ. MEL 例.
launchImageEditor [-editImageFile string] [-viewImageFile string]
[filename]
launchImageEditor は 「元に戻す」が可能、「照会」が不可能、「編集」が不可能 です。
指定したイメージ ファイルを編集/表示するために、適切なアプリケーションを起動します。
このコマンドは、Macintosh および Windows プラットフォームのみで動作します。
なし
editImageFile, viewImageFile
ロング ネーム(ショート ネーム) |
引数型 |
プロパティ |
-editImageFile(-eif)
|
string
|
|
|
ファイルが PSD の場合は、Photoshop の指定したバージョンを起動してファイルを開きます。ファイルがその他のイメージ タイプであれば、お好みのイメージ エディタを起動してファイルを開きます。
|
|
-viewImageFile(-vif)
|
string
|
|
|
イメージを表示するためのイメージ エディタを開きます。
|
|
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: 1 つのコマンドで複数回使用可能なフラグ
|
// 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`;