ジャンプ先: 概要. 戻り値. フラグ. MEL 例.
hotkey [-altModifier] [-autoSave boolean] [-commandModifier] [-ctrlModifier] [-factorySettings] [-isModifier] [-keyShortcut string] [-name string] [-pressCommandRepeat boolean] [-releaseCommandRepeat boolean] [-releaseName string] [-sourceUserHotkeys]
hotkey は、取り消し可能、照会可能、および編集不可能です。
このコマンドは、アプリケーション全体用の単一キーのホットキーを設定します。
なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
altModifier, autoSave, commandModifier, ctrlModifier, factorySettings, isModifier, keyShortcut, name, pressCommandRepeat, releaseCommandRepeat, releaseName, sourceUserHotkeys
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
コマンド内でフラグを複数回使用できます。
|
// Here's an example of how to create a namedCommand
// object and then map it to a key.
//
nameCommand
-annotation "Select Circle Tool"
-command "setToolTo circleContext"
circleToolNamedCommand;
hotkey -k "F5" -alt -name "circleToolNamedCommand";
// Here are more examples of how to use the hotkey command.
//
hotkey -k "d" -name "Delete_Command";
hotkey -k "d" -name ""; // unsets the above command
hotkey -k "d" -name "Delete_Command";
hotkey -k "d" -releaseName "After_Delete_Command";
hotkey -k "d" -name ""; //only unsets the key press name
hotkey -k "d" -releaseName ""; //only unsets the key release name
hotkey -k "d" -n "" -rn ""; //unsets both the key press and release name
// Determine if a command is attached to either the press or release
// of the "z" hotkey.
//
hotkey -query z;
// Likewise, for the modified variations of the "z" key.
//
hotkey -query -alt z;
hotkey -query -ctl z;
hotkey -query -alt -ctl z;
// Determine the press command attached to the "z" key.
//
hotkey -query -name z;
// To query the "-" hotkey use the string "Dash" instead.
//
hotkey -query Dash;