Home | Trees | Index | Help |
|
---|
Module Object :: Class Object |
|
Method Summary | |
---|---|
Add a property to object. | |
Add a new script link to this Object. | |
Recomputes the particle system. | |
Unlinks the ipo from this object. | |
bool |
Delete all this Object's script links. |
Make this Object not track another anymore. | |
Clears parent object. | |
Copies all properties from one object to another. | |
Py_Action |
Returns an action if one is associated with this object (only useful for armature types). |
PyList |
Return a list of properties from this object. |
list of 8 (x,y,z) float coordinate vectors |
Returns the bounding box of this object. |
Object type specific |
Returns the Datablock object containing the object's data. |
A vector triple |
Returns the object's delta location in a list (x, y, z) |
Integer |
Returns the object draw mode. |
Integer |
Returns the object draw type |
Py_Euler |
Returns the object's rotation as Euler rotation vector (rotX, rotY, rotZ). |
Py_Matrix |
Returns the object's inverse matrix. |
Ipo |
Returns the Ipo associated to this object or None if there's no linked ipo. |
Returns the object's location (x, y, z). | |
list of Material Objects |
Returns a list of materials assigned to the object. |
Py_Matrix |
Returns the object matrix. |
Returns the name of the object | |
Object |
Returns the object's parent object. |
Property object |
Return a properties from this object based on name. |
list |
Get a list with this Object's script links of type 'event'. |
Returns the object's size. | |
Returns the time offset of the object's animation. | |
Object |
Returns the object's tracked object. |
Returns the type of the object. | |
Boolean |
Returns the objects selection state as a boolean value True or False. |
Links Object with data provided in the argument. | |
Updates this object's display list. | |
Makes the object the parent of the objects provided in the argument which must be a list of valid Objects. | |
Make this Object track another. | |
Removes all properties from an object. | |
Remove a property from an object. | |
Sets the object's selection state. | |
Sets the object's delta location which must be a vector triple. | |
Sets the object's drawing mode. | |
Sets the object's drawing type. | |
Sets the object's rotation according to the specified Euler angles. | |
Links an ipo to this object. | |
Sets the object's location. | |
Sets the materials. | |
Sets the object's matrix and updates it's tranformation. | |
Sets the name of the object. | |
Sets the object's size. | |
Sets the time offset of the object's animation. | |
Link data of object specified in the argument with self. |
Class Variable Summary | |
---|---|
colbits : The Material usage mask. | |
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. | |
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. | |
EffX : The X effector coordinate of the object. | |
EffY : The Y effector coordinate of the object. | |
EffZ : The Z effector coordinate of the object. | |
ipo : The ipo data associated with the object. | |
Layer : The object layer. | |
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 : The matrix of the object relative to its parent. | |
matrix : The matrix of the object in world space. | |
matrixLocal : The matrix of the object relative to its parent. | |
matrixWorld : The matrix of the object in world space. | |
name : The name of the object. | |
parent : The parent object of the object. | |
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, 1/0. | |
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. |
Method Details |
---|
addProperty(property)Add a property to object.
|
addScriptLink(text, event)Add a new script link to this Object.
|
buildParts()Recomputes the particle system. This method only applies to an Object of the type Effect. |
clearIpo()Unlinks the ipo from this object.
|
clearScriptLinks()Delete all this Object's script links.
|
clearTrack(mode=0, fast=0)Make this Object not track another anymore.
|
clrParent(mode=0, fast=0)Clears parent object.
|
copyAllPropertiesTo(object)Copies all properties from one object to another.
|
getAction()Returns an action if one is associated with this object (only useful for armature types).
|
getAllProperties()Return a list of properties from this object.
|
getBoundBox()Returns the bounding box of this object. This works for meshes (out of edit mode) and curves.
|
getData()Returns the Datablock object containing the object's data. For example the Mesh, Lamp or the Camera.
|
getDeltaLocation()Returns the object's delta location in a list (x, y, z)
|
getDrawMode()Returns the object draw mode.
|
getDrawType()Returns the object draw type
|
getEuler()Returns the object's rotation as Euler rotation vector (rotX, rotY, rotZ). Angles are in radians.
|
getInverseMatrix()Returns the object's inverse matrix.
|
getIpo()Returns the Ipo associated to this object or None if there's no linked ipo.
|
getLocation()Returns the object's location (x, y, z).
|
getMaterials(what=0)Returns a list of materials assigned to the object.
|
getMatrix(space='worldspace')Returns the object matrix.
|
getName()Returns the name of the object
|
getParent()Returns the object's parent object.
|
getProperty(name)Return a properties from this object based on name.
|
getScriptLinks(event)Get a list with this Object's script links of type 'event'.
|
getSize()Returns the object's size.
|
getTimeOffset()Returns the time offset of the object's animation.
|
getTracked()Returns the object's tracked object.
|
getType()Returns the type of the object.
|
isSelected()Returns the objects selection state as a boolean value True or False.
|
link(object)Links Object with data provided in the argument. The data must match the Object's type, so you cannot link a Lamp to a Mesh type object.
|
makeDisplayList()Updates this object's display list. Blender uses display lists to store already transformed data (like a mesh with its vertices already modified by coordinate transformations and armature deformation). If the object isn't modified, there's no need to recalculate this data. This method is here for the *few cases* where a script may need it, like when toggling the "SubSurf" mode for a mesh: Example:object = Blender.Object.Get("Sphere") nmesh = object.getData() nmesh.setMode("SubSurf") nmesh.update() # don't forget to update! object.makeDisplayList() Blender.Window.Redraw()If you try this example without the line to update the display list, the object will disappear from the screen until you press "SubSurf".
|
makeParent(objects, noninverse=0, fast=0)Makes the object the parent of the objects provided in the argument which must be a list of valid Objects.
|
makeTrack(tracked, fast=0)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.
|
setDeltaLocation(delta_location)Sets the object's delta location which must be a vector triple.
|
setDrawMode(drawmode)Sets the object's drawing mode. The drawing mode can be a mix of modes. To enable these, add up the values.
|
setDrawType(drawtype)Sets the object's drawing type.
|
setEuler(euler)Sets the object's rotation according to the specified Euler angles.
|
setIpo(ipo)Links an ipo to this object.
|
setLocation(x, y, z)Sets the object's location.
|
setMaterials(materials)Sets the materials. The argument must be a list of valid material objects.
|
setMatrix(matrix)Sets the object's matrix and updates it's tranformation.
|
setName(name)Sets the name of the object.
|
setSize(x, y, z)Sets the object's size.
|
setTimeOffset(timeOffset)Sets the time offset of the object's animation.
|
shareFrom(object)Link data of object specified in the argument with self. This works only if self and the object specified are of the same type.
|
Class Variable Details |
---|
colbitsThe Material usage mask. A set bit #n means: the Material #n in the Object's material list is used. Otherwise, the Material #n of the Objects Data material list is displayed. |
dataThe data of the object. (Read-only) |
dlocThe delta (X,Y,Z) location coordinates of the object (vector). This variable applies to IPO Objects only. |
dLocXThe delta X location coordinate of the object. This variable applies to IPO Objects only. |
dLocYThe delta Y location coordinate of the object. This variable applies to IPO Objects only. |
dLocZThe delta Z location coordinate of the object. This variable applies to IPO Objects only. |
drawModeThe object's drawing mode used. The value can be a sum of: 2 - axis, 4 - texspace, 8 - drawname, 16 - drawimage, 32 - drawwire. |
drawTypeThe object's drawing type used. 1 - Bounding box, 2 - wire, 3 - Solid, 4- Shaded, 5 - Textured. |
drotThe delta (X,Y,Z) rotation angles (in radians) of the object (vector). This variable applies to IPO Objects only. |
dRotXThe delta X rotation angle (in radians) of the object. This variable applies to IPO Objects only. |
dRotYThe delta Y rotation angle (in radians) of the object. This variable applies to IPO Objects only. |
dRotZThe delta Z rotation angle (in radians) of the object. This variable applies to IPO Objects only. |
dsizeThe delta (X,Y,Z) size of the object. |
dSizeXThe delta X size of the object. |
dSizeYThe delta Y size of the object. |
dSizeZThe delta Z size of the object. |
EffXThe X effector coordinate of the object. Only applies to IKA. |
EffYThe Y effector coordinate of the object. Only applies to IKA. |
EffZThe Z effector coordinate of the object. Only applies to IKA. |
ipoThe ipo data associated with the object. (Read-only) |
locThe (X,Y,Z) location coordinates of the object (vector). |
LocXThe X location coordinate of the object. |
LocYThe Y location coordinate of the object. |
LocZThe Z location coordinate of the object. |
matThe matrix of the object relative to its parent. (Read-only) |
matrixThe matrix of the object in world space. (Read-only) |
matrixLocalThe matrix of the object relative to its parent. (Read-only) |
matrixWorldThe matrix of the object in world space. (Read-only) |
nameThe name of the object. |
parentThe parent object of the object. (Read-only) |
rotThe (X,Y,Z) rotation angles (in radians) of the object (vector). |
RotXThe X rotation angle (in radians) of the object. |
RotYThe Y rotation angle (in radians) of the object. |
RotZThe Z rotation angle (in radians) of the object. |
selThe selection state of the object, 1/0. |
sizeThe (X,Y,Z) size of the object (vector). |
SizeXThe X size of the object. |
SizeYThe Y size of the object. |
SizeZThe Z size of the object. |
trackThe object tracking this object. (Read-only) |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue Jan 4 13:43:05 2005 | http://epydoc.sf.net |