ScriptJobを使うとMAYAの中でイベントや状態の変化があった時に実行するコマンドを 定義できる。
scriptJob -listEvents;
scriptJob -listConditions;
$jobnum = `scriptJob -conditionTrue "SomethingSelected" "delete"`;
scriptJob -kill $jobnum;