Global obj
- ダイアログ
- alert("CoSA Lives!"); //昔々あったとさ
- Yes/Noボタンのあるダイアログ
- var shouldAdd = confirm("Add to Render Queue?");
- if (shouldAdd == "true"){proj.renderQueue.items.add(myCompItem);
- }
- 入力欄のあるダイアログ
- var myCompItem = app.project.item(1);
- var newName = prompt( "What would you like to name the comp?");
- if (newName) {myCompItem.name = newName;
- }
- 情報パネルにテキストを表示
- write("This text appears in Info panel ");
- write("with more on same line.");
- 情報パネルにテキストを表示して改行
- writeLn("This text appears on first line");
- writeLn("This text appears on second line");
- ScriptのUndoとレイヤーロック
- app.beginUndoGroup("Lock");
- var layers = app.project.item(2).numLayers;
- for (var i=1 ; i<=layers ;i++){app.project.item(2).layer(i).locked = true;
- }
- app.endUndoGroup();
- システムコマンドでAEにスクリプトを渡す
- afterfx.exe -s "alert("You just sent an alert to After Effects")"
- afterfx.exe -r c:\myDocuments\Scripts\myAEScriptHere.jsx
- afterfx.exe -r "c:\myDocuments\Scripts\Script Name with Spaces.jsx"
- Timeを現在のフォーマットに変換 (ver.7-)
- currentTime= app.project.item(1).layer(1).time;
- FormatTime=timeToCurrentFormat(currentTime, 24);
- alert(FormatTime);
前のページへ