The Blender Object module
This module provides Object manipulation routines.
Example:
from Blender import Object
ob = Object.get('Plane')
actobj = Object.getSelected()[0] # get active Object
print actobj.loc # print position
ob.makeParent([actobj]) # make ob the parent of actobj
Functions
|
|
New
_Empty_nodata
get
getSelected
|
|
New
|
New ( objtype, name=None )
Creates a new, empty object and returns it.
objtype is a string and must be one of:
Camera
Empty
Mesh
Lamp
More object types will be supported in future.
Example:
ob = Object.New('Camera')
|
|
_Empty_nodata
|
_Empty_nodata ( obj )
|
|
get
|
get ( name=None )
If name given, the Object name is returned if existing, None otherwise.
If no name is given, a list of all Objects is returned
|
|
getSelected
|
getSelected ()
Returns a list of selected Objects in the active layer(s).
The active object is the first in the list, if visible
|
Classes
|
|
|
|