Skip to content

Instantly share code, notes, and snippets.

@willnode
Created June 2, 2018 06:36
Show Gist options
  • Select an option

  • Save willnode/6cbaddbc48fcaf38533830615d948cc4 to your computer and use it in GitHub Desktop.

Select an option

Save willnode/6cbaddbc48fcaf38533830615d948cc4 to your computer and use it in GitHub Desktop.
Blender vertex statistics breakdown script
import bpy
scene = bpy.context.scene
objs = [obj for obj in scene.objects if hasattr(obj.data, 'vertices')]
objs.sort(key=lambda x: len(x.data.vertices), reverse=True)
print("Enumerating...\t verts\t edges\t faces")
for m in objs:
data = m.data
print(data.name, "\t:\t", len(data.vertices), "\t",
len(data.edges), "\t", len(m.data.polygons))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment