script (MEL) |
Only available in MEL |
containerRmbMenu |
In categories: General |
Go to: Synopsis. Return value. MEL examples.
containerRmbMenu()
The containerRmbMenu script is an example of how to write a
rightMenuButton (RMB) callback for the container node. To create
your own customized RMB menu, write a similar script which returns a
string array defining the desired menu names and their callbacks.
To try this script out, create a container node, and
enter a value of "containerRmbMenu" into the container node's
rmbCommand attribute (Rmb Command in the Attribute Editor).
Then press the RMB over an object in your container in the viewport
or the outliner. You will see the extra container-related items
in the menu. Clicking on a menu item will invoke the callback
specified by the return. The callback will receive a string argument
indicating the object that was RMBed on.
None
// request the RMB menu list for a container
string $items[] = `containerRmbMenu`;