| Home | Trees | Index | Help |
|
|---|
| Module Object |
|
The Blender.Object submodule
New:Object.getData now accepts two optional
bool keyword argument to define (1) if the user wants the data object
or just its name and (2) if a mesh object should use NMesh or
Mesh.
Object.clearScriptLinks accepts a
parameter now.
Layers and added the easier layers. The old form "Layer"
will continue to work.
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. |
| Function Summary | |
|---|---|
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. | |
Get the Object from Blender. | |
Get the user selection. | |
Creates a new Object. | |
| Variable Summary | |
|---|---|
| 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 | IpoKeyTypes: Constant dict used for with Object.insertIpoKey attribute. |
| readonly dictionary | ParentTypes: Constant dict used for with Object.parentType attribute. |
| readonly dictionary | PITypes: Constant dict used for with Object.piType 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. |
| Function Details |
|---|
Duplicate(mesh=0, surface=0, curve=0, text=0, metaball=0, armature=0, lamp=0, material=0, texture=0, ipo=0)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.
|
Get(name=None)Get the Object from Blender.
|
GetSelected()Get the user selection. If no objects are selected, an empty list will be returned.
|
New(type, name='type')Creates a new Object. Deprecated; instead use Scene.objects.new().
|
| Variable Details |
|---|
DrawModesConstant dict used for withObject.drawMode bitfield attribute. Values
can be ORed together. Individual bits can also be set/cleared with
boolean attributes.
|
DrawTypesConstant dict used for withObject.drawType attribute. Only one type
can be selected at a time.
|
IpoKeyTypesConstant dict used for withObject.insertIpoKey attribute. Values can
be ORed together.
|
ParentTypesConstant dict used for withObject.parentType attribute.
|
PITypesConstant dict used for withObject.piType attribute. Only one type can
be selected at a time.
|
ProtectFlagsConstant dict used for withObject.protectFlags attribute. Values can
be ORed together.
|
RBFlagsConstant dict used for withObject.rbFlags attribute. Values can be
ORed together.
|
RBShapesConstant dict used for withObject.rbShapeBoundType attribute. Only one
type can be selected at a time. Values are BOX, SPHERE, CYLINDER, CONE,
and POLYHEDERON
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu May 10 20:31:59 2007 | http://epydoc.sf.net |