How To: Find a 5-point Poly and select it?


#1

Find all 5-point polys and select them using MEL.

Any thoughts on this? Basically something similar to Lightwave’s Statistics Panel.

Any help would be appreciated.

Viekoslav


#2

Just found the solution to my own problem:

polyCleanupArgList 3 { “1”,“2”,“0”,“0”,“1”,“0”,“0”,“0”,“0”,“1e-005”,“0”,“1e-005”,“0”,“1e-005”,“0”,"-2",“0” };

:beer:


#3

nevermind I see what you did…:thumbsup:


#4

Thanks.
I added that command to my Poly shelf with this icon…
For anyone else wanting to use this.


#5

Nice Icon!


#6

For this to work you have to select an object first!

Select All Triangles:

polySelectConstraint -m 3 -t 8 -sz 1;
polySelectConstraint -dis;

Select All Quads:

polySelectConstraint -m 3 -t 8 -sz 2;
polySelectConstraint -dis;

Select All Quads:

polySelectConstraint -m 3 -t 8 -sz 3;
polySelectConstraint -dis;

-m 3 applies the constraint to this selection and future ones.

-t 8 picks only faces.

-sz [0,1,2,3] Off, triangles, quads, nPoly constraint.

and at the very end the flag -dis turns all constraints off.

Now lets hope I can get a toggle of this working and I’ll be a happy man!


#7

What do you mean by toggle?
Are you going to put all the seperate commands on one menu?

A quickway to turn them off is to left-click into deadspace…

Here the way I have them set up so far…
1.ExtrudeEdge Keep faces together…from another thing I was doing today…

2.“Where Tris?”,thats what I’m calling it til I see what youre doing…
3.“Where Quads?”,select all quads…
4."Five sided+ Where?"Select more than five sided polys…I changed from the one I had before…

Now I didnt do that third command,it looks the same as:
Select All Quads:

polySelectConstraint -m 3 -t 8 -sz 3;
polySelectConstraint -dis;


#8

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.