Home | Trees | Indices | Help |
|
---|
|
This object gives access to generic data from all objects in Blender.
Note: When dealing with properties and functions such as LocX/RotY/getLocation(), getSize() and getEuler(), keep in mind that these transformation properties are relative to the object itself, ignoring any other transformations.
To get these values in worldspace (taking into account vertex parents, constraints, etc.) pass the argument 'worldspace' to these functions.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Pose object |
|
||
|
|||
|
|||
|
|||
specific Object type or string |
|
||
A vector triple |
|
||
Integer |
|
||
Integer |
|
||
Py_Euler |
|
||
Py_Matrix |
|
||
Ipo |
|
||
Boolean |
|
||
|
|||
Py_Action |
|
||
list of Material Objects |
|
||
Py_Matrix (WRAPPED DATA) |
|
||
|
|||
Object |
|
||
|
|||
String |
|
||
|
|||
Object |
|
||
String |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
list of 8 (x,y,z) float coordinate vectors (WRAPPED DATA) |
|
||
|
|||
list |
|
||
|
|||
|
|||
|
|||
|
|||
PyList |
|
||
Property object |
|
||
|
|||
|
|||
|
|||
|
|||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
int |
|
||
None |
|
||
int |
|
||
None |
|
||
int |
|
||
None |
|
||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
float |
|
||
None |
|
||
boolean |
|
||
int |
|
||
None |
|
||
int |
|
||
None |
|
||
int |
|
||
None |
|
||
int |
|
||
None |
|
Instance Variables | |
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 succession between DupOff frames. |
int |
DupSta The DupliFrame starting frame. |
integer (bitmask) |
Layers The object layers (also check the newer attribute layers). |
float |
LocX The X location coordinate of the object. |
float |
LocY The Y location coordinate of the object. |
float |
LocZ The Z location coordinate of the object. |
float |
RotX The X rotation angle (in radians) of the object. |
float |
RotY The Y rotation angle (in radians) of the object. |
float |
RotZ The Z rotation angle (in radians) of the object. |
float |
SBDefaultGoal Default softbody goal value, when no vertex group used. |
float |
SBErrorLimit Softbody Runge-Kutta ODE solver error limit (low values give more precision). |
float |
SBFriction General media friction for softbody point movements. |
float |
SBGoalFriction Softbody goal (vertex target position) friction. |
float |
SBGoalSpring Softbody goal (vertex target position) spring stiffness. |
float |
SBGrav Apply gravitation to softbody point movement. |
float |
SBInnerSpring Softbody edge spring stiffness. |
float |
SBInnerSpringFrict Softbody edge spring friction. |
float |
SBMass Softbody point mass (heavier is slower). |
float |
SBMaxGoal Softbody goal maximum (vertex group weights scaled to match this range). |
float |
SBMinGoal Softbody goal minimum (vertex group weights scaled to match this range). |
float |
SBSpeed Tweak timing for physics to control softbody frequency and speed. |
boolean |
SBStiffQuads Softbody adds diagonal springs on 4-gons enabled. |
boolean |
SBUseEdges Softbody use edges as springs enabled. |
boolean |
SBUseGoal Softbody forces for vertices to stick to animated position enabled. |
float |
SizeX The X size of the object. |
float |
SizeY The Y size of the object. |
float |
SizeZ The Z size of the object. |
Action or None |
action The action associated with this object (if defined). |
BPy_ActionStrips |
actionStrips a sequence of action strips for the object. |
int |
activeMaterial The active material index for this object. |
int |
activeShape The active shape key index for this object. |
boolean |
axis Enable display of active object's center and axis. |
list of 8 3D vectors |
boundingBox The bounding box of this object. |
colbits The Material usage mask. |
|
tuple of 4 floats between 0 and 1 |
color Object color used by the game engine and optionally for materials, 4 floats for RGBA object color. |
Constraint Sequence |
constraints a sequence of constraints for the object. |
float |
dLocX The delta X location coordinate of the object. |
float |
dLocY The delta Y location coordinate of the object. |
float |
dLocZ The delta Z location coordinate of the object. |
float |
dRotX The delta X rotation angle (in radians) of the object. |
float |
dRotY The delta Y rotation angle (in radians) of the object. |
float |
dRotZ The delta Z rotation angle (in radians) of the object. |
float |
dSizeX The delta X size of the object. |
float |
dSizeY The delta Y size of the object. |
float |
dSizeZ The delta Z size of the object. |
varies |
data The Datablock object linked to this object. |
tuple of 3 floats |
dloc The delta (X,Y,Z) location coordinates of the object (vector). |
int |
drawMode The object's drawing mode bitfield. |
float |
drawSize The size to display the Empty. |
int |
drawType The object's drawing type. |
tuple of 3 floats |
drot The delta (X,Y,Z) rotation angles (in radians) of the object. |
tuple of 3 floats |
dsize The delta (X,Y,Z) size of the object. |
float |
dupFacesScaleFac Scale factor for dupliface instance, 1.0 by default. |
list of Effect objects |
effects The list of particle effects associated with the object. |
emptyShape The empty drawing shape. |
|
boolean |
enableDupFaces The DupliFaces status of the object. |
boolean |
enableDupFacesScale The DupliFacesScale status of the object. |
boolean |
enableDupFrames The DupliFrames status of the object. |
boolean |
enableDupGroup The DupliGroup status of the object. |
boolean |
enableDupNoSpeed The DupliNoSpeed status of the object. |
boolean |
enableDupRot The DupliRot status of the object. |
boolean |
enableDupVerts The DupliVerts status of the object. |
boolean |
enableNLAOverride Whether the object uses NLA or active Action for animation. |
bool |
fakeUser When set to True, this datablock wont be removed, even if nothing is using it. |
list of Properties. |
game_properties The object's properties. |
Ipo |
ipo Contains the Ipo if one is assigned to the object, None otherwise. |
boolean |
isSoftBody True if object is a soft body. |
list of integers |
layers The layers this object is visible in (also check the older attribute Layers). |
string or None |
lib path to the blend file this datablock is stored in (readonly). |
tuple of 3 floats |
loc The (X,Y,Z) location coordinates of the object. |
Matrix |
mat The matrix of the object in world space (absolute, takes vertex parents, tracking and Ipos into account). |
Matrix |
matrix Same as mat. |
Matrix |
matrixLocal The matrix of the object relative to its parent; if there is no parent, returns the world matrix (matrixWorld). |
Matrix |
matrixOldWorld Old-type worldspace matrix (prior to Blender 2.34). |
Matrix |
matrixParentInverse The inverse if the parents local matrix, set when the objects parent is set (wrapped). |
Matrix |
matrixWorld Same as mat. |
Modifier Sequence |
modifiers The modifiers associated with the object. |
string |
name unique name within each blend file. |
boolean |
nameMode Enable display of active object's name. |
tuple of 2 floats |
oopsLoc Object's (X,Y) OOPs location. |
boolean |
oopsSel Object OOPs selection flag. |
Object or None |
parent The parent object of the object (if defined). |
int |
parentType The object's parent type. |
list |
parentVertexIndex A list of vertex parent indicies, with a length of 0, 1 or 3. |
string or None |
parentbonename The string name of the parent bone (if defined). |
int |
passIndex Index # for the IndexOB render pass. |
float |
piFalloff The particle interaction falloff power. |
float |
piMaxDist Max distance for the particle interaction field to work. |
float |
piPermeability Probability that a particle will pass through the mesh. |
float |
piRandomDamp Random variation of particle interaction damping. |
float |
piSoftbodyDamp Damping factor for softbody deflection. |
float |
piSoftbodyIThick Inner face thickness for softbody deflection. |
float |
piSoftbodyOThick Outer face thickness for softbody deflection. |
float |
piStrength Particle interaction force field strength. |
float |
piSurfaceDamp Amount of damping during particle collision. |
int |
piType Type of particle interaction. |
boolean |
piUseMaxDist Use a maximum distance for the field to work. |
bool |
pinShape If True, only the activeShape will be displayed. |
IDGroup |
properties Returns an IDGroup reference to this datablocks's ID Properties. |
int |
protectFlags The "transform locking" bitfield flags for the object. |
int |
rbFlags Rigid body bitfield. |
float |
rbMass Rigid body mass. |
float |
rbRadius Rigid body bounding sphere size. |
int |
rbShapeBoundType Rigid body shape bound type. |
bool |
restrictDisplay Don't display this object in the 3D view: disabled by default, use the outliner to toggle. |
bool |
restrictRender Don't render this object: disabled by default, use the outliner to toggle. |
bool |
restrictSelect Don't select this object in the 3D view: disabled by default, use the outliner to toggle. |
euler (Py_WRAPPED) |
rot The (X,Y,Z) rotation angles (in radians) of the object. |
boolean |
sel The selection state of the object in the current scene. |
tuple of 3 floats |
size The (X,Y,Z) size of the object. |
bool |
tag A temporary tag that to flag data as being used within a loop. |
boolean |
texSpace Enable display of active object's texture space. |
float |
timeOffset The time offset of the object's animation. |
Object or None |
track The object's tracked object. |
string |
trackAxis Track axis. |
boolean |
transp Enable transparent materials for the active object (mesh only). |
string |
type The object's type. |
string |
upAxis Up axis. |
int |
users The number of users this datablock has. |
boolean |
wireMode Enable the active object's wireframe over solid drawing. |
boolean |
xRay Enable drawing the active object in front of others. |
Method Details |
Link a particle system (see Blender.Particle). If no name is given, a new particle system is created. If a name is given and a particle system with that name exists, it is linked to the object.
|
Add vertex groups from armature using the bone heat method This method can be only used with an Object of the type Mesh when NOT in edit mode.
|
Recomputes the particle system. This method only applies to an Object of the type Effect. (depricated, does nothing now, use makeDisplayList instead to update the modifier stack) |
Insert a Shape Key in the current object. It applies to Objects of the type Mesh, Lattice, or Curve. |
Gets the current Pose of the object.
|
Evaluates the Pose based on its currently bound action at a certain frame.
|
Unlinks the ipo from this object.
|
Clears parent object.
|
Returns the Datablock object (Mesh, Lamp, Camera, etc.) linked to this Object. If the keyword parameter name_only is True, only the Datablock name is returned as a string. It the object is of type Mesh, then the mesh keyword can also be used; the data return is a Mesh object if True, otherwise it is an NMesh object (the default). The mesh keyword is ignored for non-mesh objects.
Notes:
|
Returns the object's delta location in a list (x, y, z)
|
Returns the object draw mode.
|
Returns the object draw type
|
|
Returns the object's inverse matrix.
|
Returns the Ipo associated to this object or None if there's no linked ipo.
|
Returns the objects selection state in the current scene as a boolean value True or False.
|
Note: the worldspace location is the same as ob.matrixWorld[3][0:3] |
Returns an action if one is associated with this object (only useful for armature types).
|
Returns a list of materials assigned to the object.
|
Returns the object matrix.
|
Returns the name of the object
|
Returns the object's parent object.
|
Note: the worldspace size will not return negative (flipped) scale values. |
Returns the object's parent object's sub name, or None. For objects parented to bones, this is the name of the bone.
|
Returns the time offset of the object's animation.
|
Returns the object's tracked object.
|
Returns the type of the object in 'Armature', 'Camera', 'Curve', 'Lamp', 'Lattice', 'Mball', 'Mesh', 'Surf', 'Empty', 'Wave' (deprecated) or 'unknown' in exceptional cases. Example: The example below works on the default scene. It retrieves all objects in the scene and updates the location and rotation of the camera. When run, the camera will rotate 180 degrees and moved to the opposite side of the X axis. Note that the number 'pi' in the example is an approximation of the true number 'pi'. A better, less error-prone value of pi is math.pi from the python math module.: import Blender sce = Blender.Scene.GetCurrent() for obj in sce.objects: if obj.type == 'Camera': obj.LocY = -obj.LocY obj.RotZ = 3.141592 - obj.RotZ Blender.Redraw()
|
Inserts keytype values in object ipo at curframe.
|
Links Object with ObData datablock provided in the argument. The data must match the Object's type, so you cannot link a Lamp to a Mesh type object.
|
Makes the object the parent of the objects provided in the argument which must be a list of valid Objects.
Warning: objects must first be linked to a scene before they can become parents of other objects. Calling this makeParent method for an unlinked object will result in an error. |
Uses the object as a base for all of the objects in the provided list to join into.
Notes:
|
Makes the object the deformation parent of the objects provided in the argument which must be a list of valid Objects. The parent object must be a Curve or Armature.
Warnings:
|
Makes the object the vertex parent of the objects provided in the argument which must be a list of valid Objects. The parent object must be a Mesh, Curve or Surface.
Warning: objects must first be linked to a scene before they can become parents of other objects. Calling this makeParent method for an unlinked object will result in an error. |
Makes one of the object's bones the parent of the objects provided in the argument which must be a list of valid objects. The parent object must be an Armature.
Warning: Objects must first be linked to a scene before they can become parents of other objects. Calling this method for an unlinked object will result in an exception. |
Sets the object's delta location which must be a vector triple.
|
Sets the object's drawing mode. The drawing mode can be a mix of modes. To enable these, add up the values.
|
Sets the object's drawing type.
|
Sets the object's localspace rotation according to the specified Euler angles.
|
Links an ipo to this object.
|
Sets the object's location relative to the parent object (if any).
|
Sets the materials. The argument must be a list 16 items or less. Each list element is either a Material or None. Also see colbits.
Note: Materials are assigned to the object's data by default. Unless you know the material is applied to the object or are changing the object's colbits, you need to look at the object data's materials. |
Sets the object's matrix and updates its transformation. If the object has a parent, the matrix transform is relative to the parent.
Note: This method is "bad": when called it changes the location, rotation and size attributes of the object (since Blender uses these values to calculate the object's transformation matrix). Ton is not happy having a method which "pretends" to do a matrix operation. In the future, this method may be replaced with other methods which make it easier for the user to determine the correct loc/rot/size values for necessary for the object. |
Sets the name of the object. A string longer than 20 characters will be shortened.
|
Sets the object's size, relative to the parent object (if any), clamped
|
Sets the time offset of the object's animation.
|
Link data of a specified argument with this object. This works only if both objects are of the same type.
Note: This function is faster than using getData() and setData() because it skips making a Python object from the object's data. |
Sets the object's selection state in the current scene. setting the selection will make this object the active object of this scene.
|
Returns the worldspace bounding box of this object. This works for meshes (out of edit mode) and curves.
|
Forces an update to the objects display data. If the object isn't modified, there's no need to recalculate this data. This method is here for the *few cases* where it is needed. Example: import Blender scn = Blender.Scene.GetCurrent() object = scn.objects.active object.modifiers.append(Blender.Modifier.Type.SUBSURF) object.makeDisplayList() Blender.Window.RedrawAll() If you try this example without the line to update the display list, the object will disappear from the screen until you press "SubSurf". Warning: If after running your script objects disappear from the screen or are not displayed correctly, try this method function. But if the script works properly without it, there's no reason to use it. |
Get a list with this Object's script links of type 'event'.
|
Delete script links from this Object. If no list is specified, all script links are deleted.
|
Add a new script link to this Object.
|
Make this Object track another.
Note: you also need to clear the rotation (setEuler) of this object if it was not (0,0,0) already. |
Make this Object not track another anymore.
|
Return a list of all game properties from this object.
|
Return a game property from this object matching the name argument.
|
Add or create a game property for an object. If called with only a property object, the property is assigned to the object. If called with a property name string and data object, a new property is created and added to the object.
Warnings:
|
Remove a game property from an object.
|
Copies all game properties from one object to another.
|
Set the Object's Particle Interaction Strength. Values between -1000.0 to 1000.0
|
Set the Object's Particle Interaction falloff. Values between 0 to 10.0
|
Set the Object's Particle Interaction MaxDist. Values between 0 to 1000.0
|
Set the Object's Particle Interaction type. Use Module Constants
|
Set the Object's Particle Interaction MaxDist. 0 = Off, 1 = on
|
Set the Object's Particle Interaction Deflection Setting. 0 = Off, 1 = on
|
Set the Object's Particle Interaction Permeability. Values between 0 to 10.0
|
Set the Object's Particle Interaction RandomDamp. Values between 0 to 10.0
|
Set the Object's Particle Interaction SurfaceDamp. Values between 0 to 10.0
|
Set the Object's SoftBody Mass. Values between 0 to 50.0
|
Set the Object's SoftBody Gravity. Values between 0 to 10.0
|
Set the Object's SoftBody Friction. Values between 0 to 10.0
|
Set the Object's SoftBody ErrorLimit. Values between 0 to 1.0
|
Set the Object's SoftBody GoalSpring. Values between 0 to 0.999
|
Set the Object's SoftBody GoalFriction. Values between 0 to 10.0
|
Set the Object's SoftBody MinGoal. Values between 0 to 1.0
|
Set the Object's SoftBody MaxGoal. Values between 0 to 1.0
|
Set the Object's SoftBody InnerSpring. Values between 0 to 0.999
|
Set the Object's SoftBody InnerSpringFriction. Values between 0 to 10.0
|
Set the Object's SoftBody DefaultGoal. Values between 0 to 1.0
|
Enable / Disable SoftBodies PostDef option 1: on 0: off
|
Enable / Disable SoftBodies UseGoal option 1: on 0: off
|
Enable / Disable SoftBodies UseEdges option 1: on 0: off
|
Enable / Disable SoftBodies StiffQuads option 1: on 0: off
|
Instance Variable Details |
DupEndThe DupliFrame end frame. Use with enableDupFrames. Value clamped to [1,32767].
|
DupGroupThe DupliGroup Animation Property. Assign a group to DupGroup to make this object an instance of that group. This does not enable or disable the DupliGroup option, for that use enableDupGroup. The attribute returns None when this object does not have a dupliGroup, and setting the attrbute to None deletes the object from the group.
|
DupObjectsThe Dupli object instances. Read-only. Returns of list of tuples for object duplicated by dupliframe, dupliverts dupligroups and other animation properties. The first tuple item is the original object that is duplicated, the second is the 4x4 worldspace dupli-matrix. Example:import Blender from Blender import Object, Scene, Mathutils ob= Object.Get('Cube') dupe_obs= ob.DupObjects scn= Scene.GetCurrent() for dupe_ob, dupe_matrix in dupe_obs: print dupe_ob.name empty_ob = scn.objects.new('Empty') empty_ob.setMatrix(dupe_matrix) Blender.Redraw()
|
DupOffThe DupliFrame removal of every Nth frame for this object. Use with enableDupFrames. Value is clamped to [0,1500].
|
DupOnThe DupliFrames in succession between DupOff frames. Value is clamped to [1,1500]. Use with enableDupFrames and DupOff > 0.
|
DupStaThe DupliFrame starting frame. Use with enableDupFrames. Value clamped to [1,32767].
|
LayersThe object layers (also check the newer attribute layers). This value is a bitmask with at least one position set for the 20 possible layers starting from the low order bit. The easiest way to deal with these values in in hexadecimal notation. Example:ob.Layer = 0x04 # sets layer 3 ( bit pattern 0100 ) After setting the Layer value, call Blender.Redraw( -1 ) to update the interface.
|
SBDefaultGoalDefault softbody goal value, when no vertex group used. Value clamped to [0.0,1.0].
|
SBErrorLimitSoftbody Runge-Kutta ODE solver error limit (low values give more precision). Value clamped to [0.01,1.0].
|
SBFrictionGeneral media friction for softbody point movements. Value clamped to [0.0,10.0].
|
SBGoalFrictionSoftbody goal (vertex target position) friction. Value clamped to [0.0,10.0].
|
SBGoalSpringSoftbody goal (vertex target position) spring stiffness. Value clamped to [0.0,0.999].
|
SBGravApply gravitation to softbody point movement. Value clamped to [0.0,10.0].
|
SBInnerSpringSoftbody edge spring stiffness. Value clamped to [0.0,0.999].
|
SBInnerSpringFrictSoftbody edge spring friction. Value clamped to [0.0,10.0].
|
SBMassSoftbody point mass (heavier is slower). Value clamped to [0.001,50.0].
|
SBMaxGoalSoftbody goal maximum (vertex group weights scaled to match this range). Value clamped to [0.0,1.0].
|
SBMinGoalSoftbody goal minimum (vertex group weights scaled to match this range). Value clamped to [0.0,1.0].
|
SBSpeedTweak timing for physics to control softbody frequency and speed. Value clamped to [0.0,10.0].
|
actionStripsa sequence of action strips for the object. Read-only.
|
activeMaterialThe active material index for this object.The active index is used to select the material to edit in the material buttons, new data created will also use the active material. Value is clamped to [1,len(ob.materials)]. - [0,0] when there is no materials applied to the object.
|
activeShapeThe active shape key index for this object.The active index is used to select the material to edit in the material buttons, new data created will also use the active material. Value is clamped to [1,len(ob.data.key.blocks)]. - [0,0] when there are no keys.
|
axisEnable display of active object's center and axis. Also see AXIS bit in drawMode attribute.
|
boundingBoxThe bounding box of this object. Read-only.
|
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. Example:object.colbits = (1<<0) + (1<<5) # use mesh materials 0 (1<<0) and 5 (1<<5) # use object materials for all others |
constraintsa sequence of constraints for the object. Read-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.
|
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.
|
dataThe Datablock object linked to this object. Read-only.
|
dlocThe delta (X,Y,Z) location coordinates of the object (vector). This variable applies to IPO Objects only.
|
drawModeThe object's drawing mode bitfield. See DrawModes constant dict for values.
|
drawSizeThe size to display the Empty. Value clamped to [0.01,10.0].
|
drawTypeThe object's drawing type. See DrawTypes constant dict for values.
|
drotThe delta (X,Y,Z) rotation angles (in radians) of the object. This variable applies to IPO Objects only.
|
effectsThe list of particle effects associated with the object. (depricated, will always return an empty list) Read-only.
|
emptyShapeThe empty drawing shape. See EmptyShapes constant dict for values. |
enableDupFacesThe DupliFaces status of the object. Does not indicate that this object has any dupliFaces, (as returned by DupObjects) just that dupliFaces are enabled.
|
enableDupFramesThe DupliFrames status of the object. Does not indicate that this object has any dupliFrames, (as returned by DupObjects) just that dupliFrames are enabled.
|
enableDupGroupThe DupliGroup status of the object. Set True to make this object an instance of the object's DupGroup, and set DupGroup to a group for this to take effect, Use DupObjects to get the object data from this instance.
|
enableDupNoSpeedThe DupliNoSpeed status of the object. Use with enableDupFrames to ignore dupliFrame speed.
|
enableDupRotThe DupliRot status of the object. Use with enableDupVerts to rotate each instance by the vertex normal.
|
enableDupVertsThe DupliVerts status of the object. Does not indicate that this object has any dupliVerts, (as returned by DupObjects) just that dupliVerts are enabled.
|
enableNLAOverrideWhether the object uses NLA or active Action for animation. When True the NLA is used.
|
fakeUserWhen set to True, this datablock wont be removed, even if nothing is using it. All data has this disabled by default except for Actions.
|
game_propertiesThe object's properties. Read-only.
|
ipoContains the Ipo if one is assigned to the object, None otherwise. Setting to None clears the current Ipo.
|
isSoftBodyTrue if object is a soft body. Read-only.
|
layersThe layers this object is visible in (also check the older attribute Layers). This returns a list of integers in the range [1, 20], each number representing the respective layer. Setting is done by passing a list of ints or an empty list for no layers. Example:ob.layers = [] # object won't be visible ob.layers = [1, 4] # object visible only in layers 1 and 4 ls = o.layers ls.append(10) o.layers = ls print ob.layers # will print: [1, 4, 10] Note: changes will only be visible after the screen (at least the 3d View and Buttons windows) is redrawn.
|
libpath to the blend file this datablock is stored in (readonly).lib will be None unless you are using external blend files with (File, Append/Link) Note: the path may be relative, to get the full path use Blender.sys.expandpath
|
matThe matrix of the object in world space (absolute, takes vertex parents, tracking and Ipos into account). Read-only.
|
matrixSame as mat. Read-only.
|
matrixOldWorldOld-type worldspace matrix (prior to Blender 2.34). Read-only.
|
matrixWorldSame as mat. Read-only.
|
modifiersThe modifiers associated with the object. Example:# copy the active objects modifiers to all other visible selected objects from Blender import * scn = Scene.GetCurrent() ob_act = scn.objects.active for ob in scn.objects.context: # Cannot copy modifiers to an object of a different type if ob.type == ob_act.type: ob.modifiers = ob_act.modifiers
|
nameunique name within each blend file.The name is case sensitive and 21 characters maximum length. Note: a blend file may have naming collisions when external library data is used, be sure to check the value of lib. Note: Setting a value longer then 21 characters will be shortened
|
nameModeEnable display of active object's name. Also see NAME bit in drawMode attribute.
|
oopsLocObject's (X,Y) OOPs location. Returns None if object is not found in list.
|
parentThe parent object of the object (if defined). Read-only.
|
parentTypeThe object's parent type. Read-only. See ParentTypes constant dict for values.
|
parentVertexIndexA list of vertex parent indicies, with a length of 0, 1 or 3. When there are 1 or 3 vertex parents, the indicies can be assigned to a sequence of the same length.
|
parentbonenameThe string name of the parent bone (if defined). This can be set to another bone in the armature if the object already has a bone parent.
|
passIndexIndex # for the IndexOB render pass. Value is clamped to [0,1000].
|
piFalloffThe particle interaction falloff power. Value clamped to [0.0,10.0].
|
piMaxDistMax distance for the particle interaction field to work. Value clamped to [0.0,1000.0].
|
piPermeabilityProbability that a particle will pass through the mesh. Value clamped to [0.0,1.0].
|
piRandomDampRandom variation of particle interaction damping. Value clamped to [0.0,1.0].
|
piSoftbodyDampDamping factor for softbody deflection. Value clamped to [0.0,1.0].
|
piSoftbodyIThickInner face thickness for softbody deflection. Value clamped to [0.001,1.0].
|
piSoftbodyOThickOuter face thickness for softbody deflection. Value clamped to [0.001,1.0].
|
piStrengthParticle interaction force field strength. Value clamped to [0.0,1000.0].
|
piSurfaceDampAmount of damping during particle collision. Value clamped to [0.0,1.0].
|
piTypeType of particle interaction. See PITypes constant dict for values.
|
protectFlagsThe "transform locking" bitfield flags for the object. See ProtectFlags const dict for values.
|
rbFlagsRigid body bitfield. See RBFlags for valid values.
|
rbMassRigid body mass. Must be a positive value.
|
rbRadiusRigid body bounding sphere size. Must be a positive value.
|
rbShapeBoundTypeRigid body shape bound type. See RBShapes const dict for values.
|
selThe selection state of the object in the current scene. True is selected, False is unselected. Setting makes the object active.
|
tagA temporary tag that to flag data as being used within a loop. always set all tags to True or False before using since blender uses this flag for its own internal operations.
|
texSpaceEnable display of active object's texture space. Also see TEXSPACE bit in drawMode attribute.
|
timeOffsetThe time offset of the object's animation. Value clamped to [-300000.0,300000.0].
|
trackThe object's tracked object. None is returned if no object is tracked. Also, assigning None clear the tracked object.
|
trackAxisTrack axis. Return string 'X' | 'Y' | 'Z' | '-X' | '-Y' | '-Z' (readonly)
|
transpEnable transparent materials for the active object (mesh only). Also see TRANSP bit in drawMode attribute.
|
typeThe object's type. Read-only.
|
upAxisUp axis. Return string 'Y' | 'Y' | 'Z' (readonly)
|
usersThe number of users this datablock has. (readonly) Zero user datablocks are de-allocated after reloading and saving.
|
wireModeEnable the active object's wireframe over solid drawing. Also see WIRE bit in drawMode attribute.
|
xRayEnable drawing the active object in front of others. Also see XRAY bit in drawMode attribute.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Mon Aug 31 23:12:24 2009 | http://epydoc.sourceforge.net |