Haider of Sweden
05-15-2007, 07:21 AM
Hey there!
I am sourcing Makaroni's script, zooShelveIt.mel (please see attached ZIP file)
After that, I am running this code:
string $buttons[] = `zooGetShelfButtonAll buttonTag1`;
for( $a in $buttons ) {
string $menu = `popupMenu -p $a -aob 1 buttonPopMenu`;
menuItem -l "hullo!" -c( "print \"hullo!\n\"" );
}
Where buttonTag1 is a docTag name used on a shelf button.
I want to kill the proc that creates the menuItems when exiting Maya 8.
Question is, can I kill the code above = overwrite the code above, or shall I kill the zooGetShelfButtonAll proc loaded from the MEL file?
I hope to hear from you.
I am sourcing Makaroni's script, zooShelveIt.mel (please see attached ZIP file)
After that, I am running this code:
string $buttons[] = `zooGetShelfButtonAll buttonTag1`;
for( $a in $buttons ) {
string $menu = `popupMenu -p $a -aob 1 buttonPopMenu`;
menuItem -l "hullo!" -c( "print \"hullo!\n\"" );
}
Where buttonTag1 is a docTag name used on a shelf button.
I want to kill the proc that creates the menuItems when exiting Maya 8.
Question is, can I kill the code above = overwrite the code above, or shall I kill the zooGetShelfButtonAll proc loaded from the MEL file?
I hope to hear from you.
