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:
authorKen Hughes <khughes@pacific.edu>2006-12-20 21:07:39 +0300
committerKen Hughes <khughes@pacific.edu>2006-12-20 21:07:39 +0300
commit674289096b435b215e978efe8c23d4eaa236efd1 (patch)
tree50898d78699378f91d6e3f871f4f0fc7715c42bb /source/blender/python/api2_2x/doc/Scene.py
parent253432bfc7c2a1dae224a03fb3055de19743ec67 (diff)
Python API
---------- User documentation for scn.objects (SceneObjects class). Documents what is implemented right now; there still may be some minor changes prior to release.
Diffstat (limited to 'source/blender/python/api2_2x/doc/Scene.py')
-rw-r--r--source/blender/python/api2_2x/doc/Scene.py44
1 files changed, 44 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/doc/Scene.py b/source/blender/python/api2_2x/doc/Scene.py
index d45e38b9893..8072664f3a9 100644
--- a/source/blender/python/api2_2x/doc/Scene.py
+++ b/source/blender/python/api2_2x/doc/Scene.py
@@ -306,3 +306,47 @@ class Scene:
@rtype: bool
@return: 0 on normal exit or 1 when play back is canceled by user input.
"""
+
+class SceneObjects:
+ """
+ The SceneObjects (Scene ObjectSeq) object
+ =========================================
+ This object gives access to the Objects in a Scene in Blender.
+
+ @ivar selected: an iterator over all the selected objects in a scene.
+ @type selected: sequence of L{Object}
+ @ivar context: an iterator over all the visible selected objects in a scene.
+ @type context: sequence of L{Object}
+ @ivar active: the active object in the scene.
+ @type active: L{Object}
+ """
+
+ def new(data):
+ """
+ Adds a new object to the scene. Data is either object data such as a
+ L{Mesh} or L{Curve}, or the string "Empty" for an Empty object. The
+ type of the object is determined by the type of the data.
+ @type data: string or object data
+ @param data: the object data for the new object
+ @return: the new object.
+ @rtype: L{Object}
+ """
+
+ def link(object):
+ """
+ Adds an existing object to the scene. If the object is already linked
+ to the scene, no action is taken and no exception is raised.
+ @type object: L{Object}
+ @param object: the object
+ @rtype: None
+ """
+
+ def unlink(object):
+ """
+ Removes an object from the scene. If the object is not linked
+ to the scene, no action is taken and no exception is raised.
+ @type object: L{Object}
+ @param object: the object
+ @rtype: None
+ """
+