ScriptSpot

Forum topic · Scripts Wanted

How to make array containing objects that are: not frozen, not hidden, and greater than 1 triangle?

By willchocks · 2019-06-16

Description

Hi, how would i go about creating an array that contains objects that are: not frozen, not hidden, and greater than 1 face?

Can't figure out how to get the last argument (checking the number of faces) into the below function

Here's what i have so far:


arraynew = (for o in geometry where not o.isHiddenInVpt and not o.isFrozen and (polyop.getNumFaces o == >1) collect o)

Comments (1)

.

miauu · 2019-06-30


arraynew = (for o in geometry where not o.isHiddenInVpt and not o.isFrozen and ((getPolygonCount o)[1] >1) collect o)