Home | Trees | Indices | Help |
|
---|
|
The Blender.Object submodule
New:
This module provides access to the Objects in Blender.
Example:
import Blender scn = Blender.Scene.GetCurrent() # get the current scene cam = Blender.Camera.New('ortho') # make ortho camera data object ob = scn.objects.new(cam) # make a new object in this scene using the camera data ob.setLocation (0.0, -5.0, 1.0) # position the object in the scene Blender.Redraw() # redraw the scene to show the updates.
Classes | |
Object This object gives access to generic data from all objects in Blender. |
|
Property This property gives access to object property data in Blender, used by the game engine. |
Functions | |||
|
|||
|
|||
|
|||
|
Variables | |
readonly dictionary |
DrawModes Constant dict used for with Object.drawMode bitfield attribute. |
readonly dictionary |
DrawTypes Constant dict used for with Object.drawType attribute. |
readonly dictionary |
EmptyShapes Constant dict used for with Object.emptyShape attribute. |
readonly dictionary |
IpoKeyTypes Constant dict used for with Object.insertIpoKey attribute. |
readonly dictionary |
PITypes Constant dict used for with Object.piType attribute. |
readonly dictionary |
ParentTypes Constant dict used for with Object.parentType attribute. |
readonly dictionary |
ProtectFlags Constant dict used for with Object.protectFlags attribute. |
readonly dictionary |
RBFlags Constant dict used for with Object.rbFlags attribute. |
readonly dictionary |
RBShapes Constant dict used for with Object.rbShapeBoundType attribute. |
__package__ = None
|
Function Details |
Creates a new Object. Deprecated; instead use Scene.objects.new().
Note: if an object is created but is not linked to object data, and the object is not linked to a scene, it will be deleted when the Python object is deallocated. This is because Blender does not allow objects to exist without object data unless they are Empty objects. Scene.link() will automatically create object data for an object if it has none. |
Get the Object from Blender.
Note: Get will return objects from all scenes. Most user tools should only operate on objects from the current scene - Blender.Scene.GetCurrent().getChildren() |
Get the user selection. If no objects are selected, an empty list will be returned.
Notes:
|
Duplicate selected objects on visible layers from Blenders current scene, de-selecting the currently visible, selected objects and making a copy where all new objects are selected. By default no data linked to the object is duplicated; use the keyword arguments to change this. Object.GetSelected() will return the list of objects resulting from duplication. Note: This command will raise an error if used from the command line (background mode) because it uses the 3D view context.
|
Variables Details |
DrawModesConstant dict used for with Object.drawMode bitfield attribute. Values can be ORed together. Individual bits can also be set/cleared with boolean attributes.
|
DrawTypesConstant dict used for with Object.drawType attribute. Only one type can be selected at a time.
|
EmptyShapesConstant dict used for with Object.emptyShape attribute. Only one type can be selected at a time. Values are ARROW, ARROWS, AXES, CIRCLE, CONE, CUBE AND SPHERE
|
IpoKeyTypesConstant dict used for with Object.insertIpoKey attribute. Values can be ORed together.
|
PITypesConstant dict used for with Object.piType attribute. Only one type can be selected at a time.
|
ParentTypesConstant dict used for with Object.parentType attribute.
|
ProtectFlagsConstant dict used for with Object.protectFlags attribute. Values can be ORed together.
|
RBFlagsConstant dict used for with Object.rbFlags attribute. Values can be ORed together.
|
RBShapesConstant dict used for with Object.rbShapeBoundType attribute. Only one type can be selected at a time. Values are BOX, SPHERE, CYLINDER, CONE, and POLYHEDERON
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Mon Aug 31 23:12:22 2009 | http://epydoc.sourceforge.net |