Skip to content

Instantly share code, notes, and snippets.

@don1138
Created January 22, 2023 06:04
Show Gist options
  • Save don1138/2ac499860949795b99af2c831c91c5e7 to your computer and use it in GitHub Desktop.
Save don1138/2ac499860949795b99af2c831c91c5e7 to your computer and use it in GitHub Desktop.
Blender - Print the contents of a .blend file
import bpy
print("# IMAGES")
for i in bpy.data.images:
print(i.name)
print("")
print("# COLLECTIONS")
for i in bpy.data.collections:
print(i.name)
print("")
print("# MATERIALS")
for i in bpy.data.materials:
print(i.name)
print("")
print("# NODE GROUPS")
for i in bpy.data.node_groups:
print(i.name)
print("")
print("# OBJECTS")
for i in bpy.data.objects:
print(i.name)
print("")
print("# WORLDS")
for i in bpy.data.worlds:
print(i.name)
print("")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment