PDA

View Full Version : Problem - Central Shelves


barrys
10-07-2008, 11:04 AM
Hi Guys

I need your help with some Maya setup. I'm trying to centralise my shelves so all the team can access them.

I've written a Maya.env file that sets the SCRIPTS, SHELF paths etc to another place. And this is fine. Maya, upon starting, can locate all the scripts and plugins in the new location. But I can't get the shelves to work.

I've set MAYA_SHELF_PATH to my desired folder. In this folder is a mel script called shelf_art.mel. This shelf/mel file has a few icons and commands in it. When Maya starts it builds the appropriate shelf. In other words I can see shelf_art in my UI. However it is always empty - it never seems to properly read the contents. I've copied the contents from another (working) shelf so I know the syntax is correct.

1) Why wont it read the shelf and display all the proper icons and shortcuts?
2) Why, when I edit the shelf in Maya, wont it update the mel file?

Your help would be appreciated

Barry

barrys
10-07-2008, 11:07 AM
Update:

tried something else. I opened a working shelf - the default Polygon one - and copied all the text into my newly created and centralised shelf_art.

Still doesn't work. Maya builds the shelf but doesn't populate it with icons or commands. The shelf Editor shows a completely empty shelf despite the mel file being full of text.

Barry

Norb
10-10-2008, 09:07 PM
can you post the code?


or at least an abbreviated version containing a single item that doesn't work?

gaggle
10-11-2008, 12:29 AM
hi barrys,


A centralized handling of shelves has been on my mind for a couple months, though I haven't had time to act on it yet. The very early preliminary tests I managed to squeeze in seemed to indicate some of the trouble you're describing, that Maya is surprisingly picky about when and how it wants to load its shelves.

I concluded I'd have to look into the shelfButton/shelfLayout related commands, to generate shelves dynamically. Basically just leaving Maya alone to do the actual shelf file-handling.


Idunno if that helps you or not, as I said I never got far into this particular project. We went with an ol' fashioned menu instead, they were the simpler choice. I'd love to hear if you make progress on the shelves though, best of luck :)

barrys
10-13-2008, 04:15 PM
Thanks for the feedback guys.

I managed to fix it quite simply. I had to add the location of the shelf to the MAYA_SCRIPT_PATH variable in my Maya.env file.

Barry

CGTalk Moderation
10-13-2008, 04:15 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.