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 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. |
Property |
This property gives access to object property data 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.1 on Thu Dec 22 22:38:14 2005 | http://epydoc.sf.net |