ScriptSpot

Forum topic · General Scripting

select objects with more of 32000 vertices

By titane357 · 2011-09-21

Description

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 (5)

or use getPolygonCount

Anubis · 2011-09-21

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

titane357 · 2011-09-21

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 · 2011-09-21

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

geometryClass

Anubis · 2011-09-21

(its a supper class)

select (for o in geometry

miauu · 2011-09-21


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