commandSearch.commands module¶
-
commandSearch.commands.
filter
(search)¶ The search string is processed find matches within the commands variable.
Parameters: search (str) – search string to match with commands Returns: Matching commands Return type: list
-
commandSearch.commands.
get
()¶ Get all registered commands from the global variable, if the global variable cannot be found an empty dictionary will be returned.
Returns: Commands data Return type: dict
-
commandSearch.commands.
getItem
(item, name, parents)¶ Get data from item and store it into COMMANDS variable.
Parameters: - item (QWidgetAction) –
- name (str) –
- parents (list) – List f all parents, used for hierarchy
-
commandSearch.commands.
getItemOptionBox
(item, name)¶ Get data from option item and store it into COMMANDS variable.
Parameters: - item (QWidgetAction) –
- name (str) –
-
commandSearch.commands.
getMenu
(menu)¶ Get the name of the QMenu parsed.
Parameters: menu (QMenu) – Returns: Menu name Return type: str
-
commandSearch.commands.
store
()¶ Process Maya’s menubar to see if any if its children meet the search command requirements. If so, the button and commands will be added to the commands variable.