pymel.core.context.hotkeyCtx¶
- hotkeyCtx(*args, **kwargs)¶
This command sets the hotkey context for the entire application. In query mode, return type is based on queried flag.
Flags:
Long Name / Short Name Argument Types Properties addClient / ac unicode
Associates a client to the given hotkey context type. This flag needs to be used with the flag typewhich specifies the context type. clientArray / ca bool
Returns an array of the all context clients associated to the hotkey context type. This flag needs to be used with the flag typewhich specifies the context type. currentClient / cc unicode
Current client for the given hotkey context type. This flag needs to be used with the flag typewhich specifies the context type. insertTypeAt / ita unicode, unicode
Inserts a new hotkey context type in the front of the given type. The first argument specifies an existing type. If it’s empty, the new context type will be inserted before Globalcontext type. The second argument specifies the name of new context type. removeAllClients / rac bool
Removes all the clients associated to the hotkey context type. This flag needs to be used with the flag typewhich specifies the context type. removeClient / rc unicode
Removes a client associated to the hotkey context type. This flag needs to be used with the flag typewhich specifies the context type. removeType / rt unicode
Removes the given hotkey context type. type / t unicode
Specifies the context type. It’s used together with the other flags such as currentClient, addClient, removeClientand so on. typeArray / ta bool
Returns a string array containing the names of all hotkey context types, ordered by priority. typeExists / te unicode
Returns true|false depending upon whether the specified hotkey context type exists. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.hotkeyCtx