I have an object here with 2 faces (front and back) perpendicular to the floor and perfectly aligned with front ortho, then a number of smaller faces on all sides.
In front ortho, it looks like this
From the side, it looks like this
I would like to use a script to get the angle of each side face, and then rotate it according to what angle it’s originally at.
The angle should be the angle between the face and the floor. Please share your advice on how I could go about this, thanks in advance