There can come a time where something goes wrong with your shelves: Maybe one is empty, when it should be full. Here's a way to sort of 'reset' your shelves to get them working again.
Let's say your shelf is called "
First off, close Maya. Maya saves its prefs when it closes, and we need to modify them.
Second, (after making a backup of it...) open in your favorite text editor:
The second one stores the actual name of the shelf you see on-screen, "
It's possible if there are problems, you'll find these on other lines as well: REMOVE THEM ALL FROM THAT FILE, save, and restart Maya.
From there, your shelf will be missing: You can now 'Load Shelf...' from the menu to bring it back. It should be a happy shelf.
These problems can also happen when calling to the mel
Let's say your shelf is called "
myAwesomeTools
":First off, close Maya. Maya saves its prefs when it closes, and we need to modify them.
Second, (after making a backup of it...) open in your favorite text editor:
C:\Users\<userName>\Documents\maya\<mayaVersion>\prefs\userPrefs.melDo a text search for the name of your shelf. You should find it at minimium in two different locations, looking like this:
-sv "shelfFile34""shelf_myAwesomeTools"and this:
-sv "shelfName34""myAwesomeTools"These are both calls to
optinVar
s: The first one stores the name of the shelf_myAwesomeTools.mel
script that holds all your script contents.The second one stores the actual name of the shelf you see on-screen, "
myAwesomeTools
".It's possible if there are problems, you'll find these on other lines as well: REMOVE THEM ALL FROM THAT FILE, save, and restart Maya.
From there, your shelf will be missing: You can now 'Load Shelf...' from the menu to bring it back. It should be a happy shelf.
These problems can also happen when calling to the mel
loadNewShelf
, that is trying to load a shelf from some network location at startup: Using this system to clean out the old optionVar
s, you can get your networked shelf back.