Hi, I’m new at Python, but I need to implement a small script that should search for faces with more than 4 vertices in my blender file!
Actually i have a script that say me which object has these faces, but I would like to find a way to understand which are these faces!
The script i have is this:
import bpy print("----- SCRIPT -----") for ob in bpy.data.objects: if ob.type == "MESH": m = ob.data faces =  sum = 0 for face in m.polygons: verts_on_face = face.vertices[:] if len(verts_on_face) > 4: sum = sum + 1 if sum != 0: print (ob.name) print(sum)
Can you help me???
I thought to this solution, but I’m not able to implement it:
When the script finds a face with more than 4 vertices, it should select this face and then, by “break” , it should exit
How can I select a single face in Blender 2.65?
Thank you in advance