Instead of editing a shelf's mel file every time I want to add a new 
right-click menuItem to a shelf button, i'd like to populate it dynamically.

I can find and set the shelfButton's popupMenu's -postMenuCommandOnce 
command. However, maya does not actually create the shelfButtons until the 
shelf is selected, so I can't set the command until the shelf is selected.

Beside the hacky solution to automatically select the shelf tab on maya 
startup so the buttons are generated, is there a nice way to dynamically 
populate a shelfButton's right-click commands?

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to