| Home | Trees | Index | Help |
|
|---|
| Module Object |
|
The Blender.Object submodule
This module provides access to the Object Data in Blender.
Example:
import Blender
scene = Blender.Scene.getCurrent () # get the current scene
ob = Blender.Object.New ('Camera') # make camera object
cam = Blender.Camera.New ('ortho') # make ortho camera data object
ob.link (cam) # link camera data with the object
scene.link (ob) # link the object into the scene
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. |
| Function Summary | |
|---|---|
Get the Object from Blender. | |
Get the selected objects from Blender. | |
Creates a new Object. | |
| Function Details |
|---|
Get(name=None)Get the Object from Blender.
|
GetSelected()Get the selected objects from Blender. If no objects are selected, an empty list will be returned.
|
New(type, name='type')Creates a new Object.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Mon Feb 2 18:51:06 2004 | http://epydoc.sf.net |