を、以前 google+ に投稿したフォルダを開くスクリプトでテスト。
css themesは"RDark"を使用。
global proc string openFolder()
{
string $sceneName = `file -q -sn`;
if(!`size $sceneName`) error("File Name Untiled.");
string $path = toNativePath(`dirname $sceneName`);
string $explorer=(`getenv "SystemRoot"`+"/explorer.exe");
system ("start "+$explorer+" /n,"+$path);
return $path;
}
maya2014以降@windows7この部分のbrushは"php"
melの変数をハイライトしてくれている。
folderOpen();
function folderOpen()
{
try{
activeDocument.path.execute();
}
catch( err ){
alert ( err, "folderOpen.jsx", true);
}
}
photoshopCS6(64bit)@windows7こっちのbrushは"js"
0 件のコメント:
コメントを投稿