A curious little preference, that is not turned on automatically, came to my attention recently. The command is known as popupMenuSelection, but in the Selection area of Maya’s preferences it is a check box labeled Pick Chooser. Once turned on it allows you to pick a single object among multiple objects quite easily even in the most crowded of scenes. All you have to do is Left-Click on the area of your object and up pops a menu to select one of the objects that are underneath your cursor at the moment of the click.

Once I started to tell some people about the option they started to use it, but they found that they wanted to an easier way to enable it or disable it without have to go into the preferences over and over again. So I created a simple toggle script that you can paste into the Script Editor and than middle-drag into your favorite Shelf and it will toggle the command on and off at your own convenience. I even added a little feedback to make sure you know if it is enabled or disabled after you click.

$str = `selectPref -q -popupMenuSelection`;

if($str == 1)
{
    selectPref -popupMenuSelection false;
    print "// popupMenuSelection Disabled //";
}
else
{
    selectPref -popupMenuSelection true;
    print "// popupMenuSelection Enabled //";
}