Discovering Menus to Extend
How to find what Menus can be extended
Last updated
How to find what Menus can be extended
Last updated
Before we dive into any code let's discover what menus can be extended! In the Output Log Window, with Cmd
set, we can run this command to enable an edit/debug state on any valid menu panels:
With this cvar set an additional cog button will be added to any menus that we can extend (marked in green):
Anywhere we see that Cog is a Menu we can extend. Pressing on the Cog Button will open up this menu, providing us details on that menu:
This window is fantastic for our needs to determine the menu paths and what's already present. In this window we can find the available menus' paths, see what sections are available to add to, and make sure we don't add any duplicate menu names.
Here's a breakdown of the noted areas in the above screenshot:
1) the menu name / path. We can use this to find the menu in Python! 2) the menu contents, click on any entry here to view its details 3) the name of the selected menu item 4) the class type of the selected menu item