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

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

Comment viewing options

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

.

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

Comment viewing options

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