Notifications
Clear all

[Closed] polyop.getHiddenFaces problem

Hey folks, I’m a MAXScript newbie and I’m having some trouble with a simple bit of code.

Basically I’m trying to count how many faces are hidden in an editable poly. The script I’m using is:

(polyop.getHiddenFaces $).count

Instead of returning the amount of hidden faces it’s returning the face count of the poly.

Any help would be great thanks.

2 Replies

polyop.getHiddenFaces returns a bitArray, not a regular array.

h = polyop.getHiddenFaces $
(for i=1 to h.count where h[i]==true collect h[i]).count

try .numberset instead of .count