Home Coding, Scripting, Shaders

Mel script having a hard time querying if face or object is selected.

polycount sponsor
Offline / Send Message
malcolm polycount sponsor
I have an if statement that I want to use to see if the object is selected or the polygon face is selected, when I use the right click menu to switch to face mode it appears to mess up the -q -polymeshFace and it will return true even though I'm in object mode. Does anyone know how to reliably query if you have faces selected or objects selected.

$maCheckIfFacesSelected = `selectType -q -polymeshFace`;

Replies

Sign In or Register to comment.