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

05 May 2003, 07:15 PM
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.


05 May 2003, 09:05 PM
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" };


05 May 2003, 09:58 PM
nevermind I see what you did..:thumbsup:

05 May 2003, 10:31 PM
I added that command to my Poly shelf with this icon...
For anyone else wanting to use this.

05 May 2003, 11:07 PM
Nice Icon!

05 May 2003, 06:02 AM
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!

05 May 2003, 10:05 AM
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;

CGTalk Moderation
01 January 2006, 02:00 AM
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.