PDA

View Full Version : Adding items to shelf through MEL


jornp
08-31-2009, 12:05 AM
I'm trying to find a way to make a pre-defined script to set up my hotkeys and shelf in Maya.

I've figured out how to define hotkeys with a MEL-script, however I can't seem to find out how I can add items to my custom shelf with MEL.


I've tried using:
menuItemToShelf "MayaWindow|mainPolygonsEditMeshMenu|menuItem766";

But I get the following error:
// Error: Object not found: MayaWindow|mainPolygonsEditMeshMenu|menuItem766. //


Any suggestions?

GiantG
08-31-2009, 07:59 AM
scriptToShelf ("Sel", "select -all", true);

CGTalk Moderation
08-31-2009, 07:59 AM
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.