You can add pop-up menus to shelf items to perform custom tasks. Pop-up menus appear when you right-click each shelf item.
To create a new pop-up menu
- Open the (Window > Settings/Preferences > Shelf Editor).
- In the tab, select the shelf you want to add a pop-up menu to.
- Select the tab.
- Click the button .
An entry called appears in the list.
- Enter a name for the menu in the field.
- Select or in the panel and enter a script to define the functionality of your new menu.
Now if you -click the corresponding shelf item, your new menu item appears in the pop-up menu. If you select it, Maya performs the actions
defined by the script.
You can modify a script at any time to adjust the functionality of your menu items. You can also adjust the order in which
the items appear by reordering them with the () and () buttons. You can delete a menu item by highlighting it and clicking the ( button.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License