Hello all. I've been trying to incorporate a workflow similar to Alex Alvarez's marking menu for the selection masks...the Status bar is the last of the UI bars that I wanna scrap for now...I'm not experienced enough to know which selection types I'll never use, so I've setup two different marking menus - one for objects , and one for components and put all eight types in each. (I've incorporated hiearchy into one of those so I don't need a separate one). As it stands right now, if I pick one thing, it turns everything else off...I'd like to be able to blend selection sets much like the Status Bar does normally.
To do this, I need to make the command in the marking menu a toggle...so (finally) the problem is...what sort of syntax do I use make the pickMasks toggle on/off? In the Script editor, if i turn on my "points" mask, it says:
setComponentPickMask "Points" true;
for example. Pressing it again changes the 'true' to 'false', of course. What command can i insert in there to make Maya turn it on, or if it is already on, turn it off? I've been looking through the syntax of other toggles, and it seems to change depending on what tool you are using. Also, what would be the command to change the state of the 'check box' option in "Edit Marking Menu", so I can associate a check in the box with a "true" state? Thanks in advance.