Created
August 15, 2018 14:56
-
-
Save robgithub/73e01632855d3add7efe9d5ae3a52469 to your computer and use it in GitHub Desktop.
Blender list all meshes noting Smooth and Auto Smooth settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy, math | |
def is_smooth(polys): | |
smoothed=False | |
for poly in polys: | |
if not smoothed: | |
smoothed = poly.use_smooth | |
return smoothed | |
for mesh in bpy.data.objects.data.meshes: | |
print(mesh.name, is_smooth(mesh.polygons), mesh.use_auto_smooth) | |
print("{:8.4f}".format(math.degrees(mesh.auto_smooth_angle)) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment