5
for obj in bpy.data.objects:
9
# print all scene names in a list
10
print(bpy.data.scenes.keys())
14
if "Cube" in bpy.data.meshes:
15
mesh = bpy.data.meshes["Cube"]
16
print("removing mesh", mesh)
17
bpy.data.meshes.unlink(mesh)
20
# write images into a file next to the blend
22
file = open(os.path.splitext(bpy.data.filepath)[0] + ".txt", 'w')
24
for image in bpy.data.images:
25
file.write("%s %dx%d\n" % (image.filepath, image.size[0], image.size[1]))