This object gives access to generic data from all objects in
Blender.
| Method Summary |
| |
addProperty(name_or_property,
data,
type)
Add or create a property for an object. |
| |
addScriptLink(text,
event)
Add a new script link to this Object. |
| |
buildParts()
Recomputes the particle system. |
| |
clearIpo()
Unlinks the ipo from this object. |
| |
clearScriptLinks(links)
Delete script links from this Object. |
| |
clearTrack(mode,
fast)
Make this Object not track another anymore. |
| |
clrParent(mode,
fast)
Clears parent object. |
| |
copyAllPropertiesTo(object)
Copies all properties from one object to another. |
| |
evaluatePose(framenumber)
Evaluates the Pose based on its currently bound action at a certain
frame. |
| Py_Action
|
getAction()
Returns an action if one is associated with this object (only useful
for armature types). |
| PyList
|
getAllProperties()
Return a list of properties from this object. |
| list of 8 (x,y,z) float coordinate vectors (WRAPPED DATA)
|
getBoundBox()
Returns the worldspace bounding box of this object. |
| specific Object type or string
|
getData(name_only,
mesh)
Returns the Datablock object (Mesh, Lamp, Camera, etc.) linked to this
Object. |
| A vector triple
|
getDeltaLocation()
Returns the object's delta location in a list (x, y, z) |
| Integer
|
getDrawMode()
Returns the object draw mode. |
| Integer
|
getDrawType()
Returns the object draw type |
| Py_Euler
|
getEuler(space)
Return a python Euler. |
| Py_Matrix
|
getInverseMatrix()
Returns the object's inverse matrix. |
| Ipo
|
getIpo()
Returns the Ipo associated to this object or None if there's no linked
ipo. |
| |
getLocation(space)
Return (x, y, z) |
| list of Material Objects
|
getMaterials(what)
Returns a list of materials assigned to the object. |
| Py_Matrix (WRAPPED DATA)
|
getMatrix(space)
Returns the object matrix. |
| |
getName()
Returns the name of the object |
| Object
|
getParent()
Returns the object's parent object. |
| String
|
getParentBoneName()
Returns the object's parent object's sub name, or None. |
| int
|
getPIDeflection()
Get the Object's Particle Interaction Deflection Setting. |
| float
|
getPIFalloff()
Get the Object's Particle Interaction falloff. |
| float
|
getPIMaxDist()
Get the Object's Particle Interaction MaxDist. |
| float
|
getPIPermf()
Get the Object's Particle Interaction Permeability. |
| float
|
getPIRandomDamp()
Get the Object's Particle Interaction RandomDamp. |
| float
|
getPIStregth()
Get the Object's Particle Interaction Strength. |
| float
|
getPISurfaceDamp()
Get the Object's Particle Interaction SurfaceDamp. |
| int
|
getPIType()
Get the Object's Particle Interaction Type. |
| int
|
getPIUseMaxDist()
Get the Object's Particle Interaction if using MaxDist. |
| Pose object
|
getPose()
Gets the current Pose of the object. |
| Property object
|
getProperty(name)
Return a properties from this object based on name. |
| float
|
getSBDefaultGoal()
Get the Object's SB DefaultGoal. |
| float
|
getSBErrorLimit()
Get the Object's SB ErrorLimit. |
| float
|
getSBFriction()
Get the Object's SB Friction. |
| float
|
getSBGoalFriction()
Get the Object's SB GoalFriction. |
| float
|
getSBGoalSpring()
Get the Object's SB GoalSpring. |
| float
|
getSBGravity()
Get the Object's SB Gravity. |
| float
|
getSBInnerSpring()
Get the Object's SB InnerSpring. |
| float
|
getSBInnerSpringFriction()
Get the Object's SB InnerSpringFriction. |
| float
|
getSBMass()
Get the Object's SB Mass. |
| float
|
getSBMaxGoal()
Get the Object's SB MaxGoal. |
| float
|
getSBMinGoal()
Get the Object's SB MinGoal. |
| int
|
getSBPostDef()
get SoftBodies PostDef option |
| int
|
getSBStiffQuads()
get SoftBodies StiffQuads option |
| int
|
getSBUseEdges()
get SoftBodies UseEdges option |
| int
|
getSBUseGoal()
get SoftBodies UseGoal option |
| list
|
getScriptLinks(event)
Get a list with this Object's script links of type 'event'. |
| |
getSize(space)
Return (SizeX, SizeY, SizeZ) |
| |
getTimeOffset()
Returns the time offset of the object's animation. |
| Object
|
getTracked()
Returns the object's tracked object. |
| |
getType()
Returns the type of the object in 'Armature', 'Camera', 'Curve',
'Lamp', 'Lattice', 'MBall', 'Mesh', 'Surf', 'Empty', 'Wave' (deprecated)
or 'unknown' in exceptional cases. |
| |
insertIpoKey(keytype)
Inserts keytype values in object ipo at curframe. |
| |
insertShapeKey()
Insert a Shape Key in the current object. |
| int
|
isSB()
Get if the Object's SB is Enabled. |
| Boolean
|
isSelected()
Returns the objects selection state in the current scene as a boolean
value True or False. |
| |
join(objects)
Uses the object as a base for all of the objects in the provided list
to join into. |
| |
link(datablock)
Links Object with ObData datablock provided in the argument. |
| |
makeDisplayList()
Updates this object's display list. |
| |
makeParent(objects,
noninverse,
fast)
Makes the object the parent of the objects provided in the argument
which must be a list of valid Objects. |
| |
makeParentDeform(objects,
noninverse,
fast)
Makes the object the deformation parent of the objects provided in the
argument which must be a list of valid Objects. |
| |
makeParentVertex(objects,
indices,
noninverse,
fast)
Makes the object the vertex parent of the objects provided in the
argument which must be a list of valid Objects. |
| |
makeTrack(tracked,
fast)
Make this Object track another. |
| |
removeAllProperties()
Removes all properties from an object. |
| |
removeProperty(property)
Remove a property from an object. |
| |
select(boolean)
Sets the object's selection state in the current scene. |
| |
setDeltaLocation(delta_location)
Sets the object's delta location which must be a vector triple. |
| |
setDrawMode(drawmode)
Sets the object's drawing mode. |
| |
setDrawType(drawtype)
Sets the object's drawing type. |
| |
setEuler(euler)
Sets the object's localspace rotation according to the specified Euler
angles. |
| |
setIpo(ipo)
Links an ipo to this object. |
| |
setLocation(x,
y,
z)
Sets the object's location relative to the parent object (if any). |
| |
setMaterials(materials)
Sets the materials. |
| |
setMatrix(matrix)
Sets the object's matrix and updates its transformation. |
| |
setName(name)
Sets the name of the object. |
| PyNone
|
setPIDeflection(status)
Set the the Object's Particle Interaction Deflection Setting. |
| PyNone
|
setPIFalloff(falloff)
Set the the Object's Particle Interaction falloff. |
| PyNone
|
setPIMaxDist(MaxDist)
Set the the Object's Particle Interaction MaxDist. |
| PyNone
|
setPIPerm(perm)
Set the the Object's Particle Interaction Permeability. |
| PyNone
|
setPIRandomDamp(damp)
Set the the Object's Particle Interaction RandomDamp. |
| PyNone
|
setPIStrength(strength)
Set the the Object's Particle Interaction Strength. |
| PyNone
|
setPISurfaceDamp(damp)
Set the the Object's Particle Interaction SurfaceDamp. |
| PyNone
|
setPIType(type)
Set the the Object's Particle Interaction type. |
| PyNone
|
setPIUseMaxDist(status)
Set the the Object's Particle Interaction MaxDist. |
| PyNone
|
setSBDefaultGoal(goal)
Set the the Object's SB DefaultGoal. |
| PyNone
|
setSBErrorLimit(err)
Set the the Object's SB ErrorLimit. |
| PyNone
|
setSBFriction(frict)
Set the the Object's SB Friction. |
| PyNone
|
setSBGoalFriction(gf)
Set the the Object's SB GoalFriction. |
| PyNone
|
setSBGoalSpring(gs)
Set the the Object's SB GoalSpring. |
| PyNone
|
setSBGravity(grav)
Set the the Object's SB Gravity. |
| PyNone
|
setSBInnerSpring(sprr)
Set the the Object's SB InnerSpring. |
| PyNone
|
setSBInnerSpringFriction(sprf)
Set the the Object's SB InnerSpringFriction. |
| PyNone
|
setSBMass(mass)
Set the the Object's SB Mass. |
| PyNone
|
setSBMaxGoal(mg)
Set the the Object's SB MaxGoal. |
| PyNone
|
setSBMinGoal(mg)
Set the the Object's SB MinGoal. |
| PyNone
|
setSBPostDef(switch)
Enable / Disable SoftBodies PostDef option 1: on 0: off |
| PyNone
|
setSBStiffQuads(switch)
Enable / Disable SoftBodies StiffQuads option 1: on 0: off |
| PyNone
|
setSBUseEdges(switch)
Enable / Disable SoftBodies UseEdges option 1: on 0: off |
| PyNone
|
setSBUseGoal(switch)
Enable / Disable SoftBodies UseGoal option 1: on 0: off |
| |
setSize(x,
y,
z)
Sets the object's size, relative to the parent object (if any),
clamped |
| |
setTimeOffset(timeOffset)
Sets the time offset of the object's animation. |
| |
shareFrom(object)
Link data of object specified in the argument with self. |
| Instance Variable Summary |
| BPy_ActionStrips |
actionStrips: a sequence of action
strips for the object. |
| |
colbits: The Material usage mask. |
| BPy_Constraints |
constraints: a sequence of constraints for the object. |
| |
data: The data of the object. |
| |
dloc: The delta (X,Y,Z) location coordinates of the object (vector). |
| |
dLocX: The delta X location coordinate of the object. |
| |
dLocY: The delta Y location coordinate of the object. |
| |
dLocZ: The delta Z location coordinate of the object. |
| |
drawMode: The object's drawing mode used. |
| float |
drawSize: The drawsize for empty objects. |
| |
drawType: The object's drawing type used. |
| |
drot: The delta (X,Y,Z) rotation angles (in radians) of the object
(vector). |
| |
dRotX: The delta X rotation angle (in radians) of the object. |
| |
dRotY: The delta Y rotation angle (in radians) of the object. |
| |
dRotZ: The delta Z rotation angle (in radians) of the object. |
| |
dsize: The delta (X,Y,Z) size of the object. |
| |
dSizeX: The delta X size of the object. |
| |
dSizeY: The delta Y size of the object. |
| |
dSizeZ: The delta Z size of the object. |
| int |
DupEnd: The DupliFrame end frame. |
| Group or None |
DupGroup: The DupliGroup Animation Property. |
| list of tuples containing (object, matrix) |
DupObjects: The Dupli object instances. |
| int |
DupOff: The DupliFrame removal of every Nth frame for this object. |
| int |
DupOn: The DupliFrames in sucsession between DupOff frames. |
| int |
DupSta: The DupliFrame starting frame. |
| |
effects: The list of particle effects associated with the object. |
| bool (True/False) |
enableDupFrames: The DupliFrames status of the object. |
| bool (True/False) Set True to make this object an instance
of the objects DupGroup. |
enableDupGroup: The DupliGroup status of the object. |
| bool (True/False) |
enableDupNoSpeed: The DupliNoSpeed status of the object. |
| bool (True/False) |
enableDupRot: The DupliRot status of the object. |
| bool (True/False) |
enableDupVerts: The DupliVerts status of the object. |
| |
ipo: The ipo data associated with the object. |
| integer (bitmask) |
Layers: The object layers (also check the newer attribute layers). |
| list of integers |
layers: The layers this object is visible in (also check the older attribute
Layers). |
| |
loc: The (X,Y,Z) location coordinates of the object (vector). |
| |
LocX: The X location coordinate of the object. |
| |
LocY: The Y location coordinate of the object. |
| |
LocZ: The Z location coordinate of the object. |
| |
mat: alias for matrix: the matrix of the object in world
space. |
| |
matrix: The matrix of the object in world space, same as matrixWorld. |
| |
matrixLocal: The matrix of the object relative to its parent (or matrixWorld if there is no parent). |
| |
matrixWorld: The matrix of the object in world space. |
| BPy_Modifiers |
modifiers: a sequence of modifiers for the object. |
| |
name: The name of the object, 21 chars max. |
| |
parent: The parent object of the object. |
| |
parentbonename: The string name of the parent bone. |
| int |
protectFlags: The "transform locking" bitfield flags for the object. |
| int |
rbFlags: Rigid body flags. |
| float |
rbMass: Rigid body mass. |
| int |
rbShapeBoundType: Rigid body shape bound type. |
| |
rot: The (X,Y,Z) rotation angles (in radians) of the object (vector). |
| |
RotX: The X rotation angle (in radians) of the object. |
| |
RotY: The Y rotation angle (in radians) of the object. |
| |
RotZ: The Z rotation angle (in radians) of the object. |
| |
sel: The selection state of the object in the current scene, 1 is selected,
0 is unselected. |
| |
size: The (X,Y,Z) size of the object (vector). |
| |
SizeX: The X size of the object. |
| |
SizeY: The Y size of the object. |
| |
SizeZ: The Z size of the object. |
| |
track: The object tracking this object. |
| int |
users: The number of users of the object. |