You can assign a custom
script to activate when an object in a container is -click.
To assign a custom script to a container
You can now activate
the script by either -clicking
an object in the container in the scene view, or
-clicking
the container or a contained object in the Outliner and
selecting Container from the marking
menu.
One way to use this attribute
is to assign a script that adds a custom menu for a specific container
to the existing marking-menu that appears when you -click
a container in the scene or the Outliner (in
the Container section of the marking
menu). An example of such a script named containerRmbMenu.mel is
included with the Maya default scripts. You can find it in your
Maya install directory under scripts/others.