QUOTE(drBlacksnake @ 09/16/05, 06:42 PM)
after all You can copy mel form script editor and MMB-drag it to shelf.
[snapback]215049[/snapback]
well I wish that was the case. In fact something seems not right about the MMB preferences. althought I can move around and navigate the perspective window using MMB just fine.
From the script editor I hightlight the text that I want to make the shelf button. and when I MMB the text, it (the text) deselects and I cannot drag it anywhere. The action is the same with trying to create shelf buttons from menu items. i.e. Hotbox>polygons>booleans>difference, while the menu is still fliped out I would try and drag with MMB + ctrl + shift and nothing happens, the menu deselects. I also tried with the same option+shift+MB, apple+shift+MB ect. no combinations seem to work. I also tried from the pulldowns at the top of the maya window. I do remember the MMB working under Maya 6.5. the only two things that have changed are an upgrade to Maya 7 and i did install a wacom tablet which is now unplugged and I am not using it, but some preferences could perhaps have been mixed in the process?
The only thing which has worked for me was the running this command;
menuItemToShelf "MayaWindow|mainPolygonsMenu|menuItem639|menuItem640";
which did in fact put the polygon>boolean>union in my shelf perfectly. The only problem is that I dont know how to figure out the menuItem??? for other menus. if I wanted to put any other menus in my shelf I would need to figure out first what is the menuItem???
any clues?[COLOR=blue]