View Full Version : Marking Menu Left and Right?
stallion151 08-22-2003, 08:56 AM is there a way to put multilpe marking menu's on the mouse buttons.
for example i want to put my hide selection MM on the left button and show selection MM on the right button (while pressing my hotkey)
thanks.
stallion151
|
|
vaniljus
08-22-2003, 10:22 AM
I don't know if you can use the right button but I use multilpe marking menus on the left and middle mouse button.
My script looks like this:
global proc mmenu(string $key)
{
if(`popupMenu -exists tempMM`) { deleteUI tempMM;}
if(`popupMenu -exists tempMM2`) { deleteUI tempMM2;}
if($key=="a")
{
popupMenu -button 1 -ctl false -alt false -sh false -allowOptionBoxes true -parent viewPanes -mm 1 tempMM2;
source "menu_UImarking";
popupMenu -button 2 -ctl false -alt false -sh false -allowOptionBoxes true -parent viewPanes -mm 1 tempMM;
source "menu_Windowmarking";
}
}
I have a hotkey on the key a that calls the command mmenu("a");
If I use the left mouse button menu_UImarking will show, and if I use the middle middle mouse button menu_Windowmarking.
You need to assign a releasecommand for the key to kill the marking menu, assign it with the command mmenu("q");
MasonDoran
08-22-2003, 10:22 AM
i believe that only works with the Hotbox
stallion151
08-23-2003, 11:27 AM
i am not sure how you did this vaniljus...does that script go into the hotkey editor? i tried that, replaced the names of the marking menu's and nothing happened.
global proc mmenu(string $key)
{
.........
if($key=="a")
{
is that the hotkey assigning?
not sure how your works? could you be a bit more thorough. sorry. :)
stallion151
vaniljus
08-23-2003, 01:08 PM
You need to assign 2 hotkeys.
I have 2 commands in the the user categorie in the hotkey editor.
The first command is assigned to "a" and it will run the command "mmenu("a");"
The second command is assigned to "a Release" and it will run the command "mmenu("q");"
If you check the name of the marking menus in the marking menus editor thare are called Windowmarking and UImarking but there filenames are menu_Windowmarking.mel and menu_UImarking.mel
I have my marking menus in
\My Documents\maya\5.0\prefs\markingMenus.
The script is located in \My Documents\maya\scripts\ and it is named mmenu.mel
I'm on a Winsystem using Maya5, I have not tested this script on any other system.
stallion151
08-25-2003, 08:13 AM
thanks vaniljus. works a charm.
CGTalk Moderation
01-15-2006, 10:00 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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.