</code><pre class="CodeBlock"><code><br>//Query Object Mode, returns 1 or 0<br>selectMode -q -o;<br><br>//Query Component Mode, will return 1 even if no components are selected (cyan wireframe)<br>selectMode -q -co; If you use selectMode to enter component mode, it will switch to the last active component selection mode…
That is fantastic. Works brilliantly! Thanks so much for providing that. What part of the code is telling it to select vert, edge or face though? For example when I was trying to code this myself, I was trying to use the command, 'SelectVertexMask'. Also could you give me a hint as to how I'd figure out adding more to this…
Hi, I'd like to create a hotkey to toggle between object, vert, edge and face mode. I've found a similar hotkey that toggles between move, scale and rotate and I believe it should work in the same way. I understand I need to use if and else statements but so far I have been unable to create what I want it to do. Here's the…
Sure, the logic here is simple. Each "if" is testing which component mode is active, so it runs down the list until it hits a match. "selectType -q -pv == 1" returns true in vert mode (pv = polyVertex). Adding uvs into the mix would be a simple copy paste with a couple edits, check the maya documentation if the short names…
Ohh, I see now, thanks again Bartalon. What was throwing me off was that global object/component toggle. That query still returns true if the global mode is Object but I was using the RMB MM for vertex mode, which doesn't change the global mode.