Go to: Synopsis. Return value. Related. Flags. MEL examples.
hotkeyCtx [-addClient string] [-clientArray] [-currentClient string] [-insertTypeAt string string] [-removeAllClients] [-removeClient string] [-removeType string] [-type string] [-typeArray] [-typeExists string]
hotkeyCtx is undoable, queryable, and NOT editable.
This command sets the hotkey context for the entire application.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-addClient(-ac)
|
string
|
|||
|
||||
-clientArray(-ca)
|
|
|||
|
||||
-currentClient(-cc)
|
string
|
|||
|
||||
-insertTypeAt(-ita)
|
string string
|
|||
|
||||
-removeAllClients(-rac)
|
|
|||
|
||||
-removeClient(-rc)
|
string
|
|||
|
||||
-removeType(-rt)
|
string
|
|||
|
||||
-type(-t)
|
string
|
|||
|
||||
-typeArray(-ta)
|
|
|||
|
||||
-typeExists(-te)
|
string
|
|||
|
Flag can appear in Create mode of command | Flag can appear in Edit mode of command |
Flag can appear in Query mode of command | Flag can be used more than once in a command. |
// Here are some examples of how to use hotkeyCtx command. // // Create a user hotkey set. hotkeySet -current MyNewKeyMapSet; // Create a new context type hotkeyCtx -insertTypeAt "Global" "CustomEditor"; hotkeyCtx -insertTypeAt "CustomEditor" "CustomTool"; // Query all existing context types string $ctxTypes[] = `hotkeyCtx -query -typeArray`; print $ctxTypes; // Remove an existing context type hotkeyCtx -removeType "CustomTool"; // Determine if the given context type exists hotkeyCtx -q -te "CustomTool"; // Associate the clients to the specific context type. hotkeyCtx -t "CustomEditor" -ac "outlinerPanel" -ac "hyperGraphPanel"; // Set current context hotkeyCtx -t "CustomEditor" -cc "hyperGraphPanel"; // Unassign the client from the specific context type. hotkeyCtx -t "CustomEditor" -rc "outlinerPanel"; // Query all associated clients for the given context type. string $cl[] = `hotkeyCtx -q -t "CustomEditor" -ca`; print $cl; // Remove all associated clients hotkeyCtx -t "CustomEditor" -rac;