PDA

View Full Version : Shelf Button Name Lost On Restart


GreenBomber
09-21-2006, 05:06 PM
Hi,
I'm making this shelf and one of the button's icon image changes when you click it. It does this by checking to see what the current icon image is and then changing approprietly:

shelfButton -q -image NameofButton;

Unfortunately when I restart Maya it stops working because it can't find "NameofButton". Any suggestions?

Thanks

GreenBomber
09-22-2006, 12:13 PM
So, I figured out what to do so I figured I'd post it in case anyone was searching this. Pretty easy actually, when Maya saves a shelf it goes into your user shelves directory(which you can find using print (internalVar -ush); ). It doesn't save the button names but you can just add them in manually to the file there and it works fine.

CGTalk Moderation
09-22-2006, 12:13 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.