Skip to content

Instantly share code, notes, and snippets.

@robgithub
Created August 15, 2018 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robgithub/73e01632855d3add7efe9d5ae3a52469 to your computer and use it in GitHub Desktop.
Save robgithub/73e01632855d3add7efe9d5ae3a52469 to your computer and use it in GitHub Desktop.
Blender list all meshes noting Smooth and Auto Smooth settings
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