select objects with more of 32000 vertices

Hello, I wanted to select these objects, because I can't export them in dwg...
I tried this, but don't work... :-(
Anybody ? Thanks

for a in objects where classof a==Geometry do ( if a.numverts >= 32000 do selectmore a)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

or use getPolygonCount

--getPolygonCount() works with all nodes
select (for o in geometry where \
(getPolygonCount o)[2] >= 32000 collect o)

my recent MAXScripts RSS (archive here)

titane357's picture

wow, I have two super heros

wow, I have two super heros helping me ! :-)

I'll try this.
In fact I should tape :
"select (for o in geometry where ( o.numfaces >=32000 ) collect o)"
because dwg will look at tri poly.
Thanks for help !

titane357's picture

many thanks miauu !!! :-) Is

many thanks miauu !!! :-)
Is there a class which contain geometry AND boxes,....= mesh but not Shapes ?

Anubis's picture

geometryClass

(its a supper class)

my recent MAXScripts RSS (archive here)

miauu's picture

select (for o in geometry

select (for o in geometry where ( o.numverts >= 32000) collect o)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.