Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/python/doc/examples/bpy.data.py')
-rw-r--r--source/blender/python/doc/examples/bpy.data.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/source/blender/python/doc/examples/bpy.data.py b/source/blender/python/doc/examples/bpy.data.py
deleted file mode 100644
index fc1145a523f..00000000000
--- a/source/blender/python/doc/examples/bpy.data.py
+++ /dev/null
@@ -1,29 +0,0 @@
-import bpy
-
-
-# print all objects
-for obj in bpy.data.objects:
- print(obj.name)
-
-
-# print all scene names in a list
-print(bpy.data.scenes.keys())
-
-
-# remove mesh Cube
-if "Cube" in bpy.data.meshes:
- mesh = bpy.data.meshes["Cube"]
- print("removing mesh", mesh)
- bpy.data.meshes.unlink(mesh)
-
-
-# write images into a file next to the blend
-import os
-file = open(os.path.splitext(bpy.data.filepath)[0] + ".txt", 'w')
-
-for image in bpy.data.images:
- file.write("%s %dx%d\n" % (image.filepath, image.size[0], image.size[1]))
-
-file.close()
-
-