I don’t know MEL very well & I need some help. I’m want a hotkey to toggle object selection masks for joints on/off. I can do it manunally with ‘selectType -j true;’ or ‘selectType -j false;’ and I thought simply using ‘selectType -j;’ would toggle yet it demands an argument. 
Yep! It’s super annoying when try to select verts to skin and grabbing a joint instead
-
-
from maya import cmds if cmds.selectType(query=True, j=True) == True: cmds.selectType(j=False) else: cmds.selectType(j=True)
-
...and here I was trying to do it through setObjectPickMask "Joint"; in mel. Thanks for the tip Alyssa!
End of conversation
New conversation -
-
-
This is Python btw
-
Ah python! I was trying MEL. You’re the greatest! Thanks for the help
End of conversation
New conversation -
-
-
Easy answer be in component mode f8 but it is good to have a script worked out also.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.