Modulok, you are in luck! I have just such a thing. This will allow you to pop a different mm depending on what you have selected:
OK. Make the marking menus you want, say one for faces, one for edges, etc. For all of these menus, where it says “Use marking menu in:” leave it on “not set”.
The trick is to make another MM and set it to work in the hotkey editor. Don’t put any functions in it. Then, in the hotkey editor, underneath “user”, there will be “userMarkingMenus”. Edit the [yourmenuname]press and delete the 3rd line, which should say: source "menu[yourmenuname]";
This is where you put your check for what is selected:
code:--------------------------------------------------------------------------------
if ( size(filterExpand -sm X) > 0 )
source “menu_[facesmenuname]”;
else if ( size(filterExpand -sm Y) > 0 )
source “menu_[edgesmenuname]”;
Here you can set a MM to display if you have nothing (or anything other than “X” or “Y”) selected:
code:--------------------------------------------------------------------------------
else
source “menu_[defaultmenuname]”;
or you could have it do nothing:
code:--------------------------------------------------------------------------------
else
deleteUI tempMM;
Now just set [yourmenuname]_press to a hotkey, and let it hook up the release for you, and you’re all set!