I'd like to delete the polygons which normals have negative y coordinates. With this script I can have the vector representing polygon's normal displayed:
import bpy current_obj = bpy.context.active_object print("="*40) # printing marker for polygon in current_obj.data.polygons: verts_in_face = polygon.vertices[:] norm = polygon.normal print("face index", polygon.index) print("normal", polygon.normal)
My problem is that I simply can't check for y coordinate of this vector: I've tried:
etc. I'm getting "Syntax error: invalid syntax" pointing at  or .y. In this case, it isn't possible to check vector's y coordinate against 0 in if statement, so I can't pick up the vectors which y coords are >=0.