Module Armature :: Class Armature
[frames | no frames]

Class Armature


The Armature object

This object gives access to Armature-specific data in Blender.
Method Summary
  addBone(bone)
Add a bone to the armature.
  drawAxes(bool)
Set whether or not to draw the armature's axes per bone.
  drawNames(bool)
Set whether or not to draw the armature's names per bone.
PyList getBones()
Get all the Armature bones.
string getName()
Get the name of this Armature object.
  setName(name)
Set the name of this Armature object.

Class Variable Summary
  bones: A List of Bones that make up this armature.
  name: The Armature name.

Method Details

addBone(bone)

Add a bone to the armature.
Parameters:
bone - The Python Bone to add to the armature.
           (type=PyBone)

Warning: If a bone is added to the armature with no parent if will not be parented. You should set the parent of the bone before adding to the armature.

drawAxes(bool)

Set whether or not to draw the armature's axes per bone.
Parameters:
bool - specifies whether or not to draw axes
           (type=boolean (true or false))

drawNames(bool)

Set whether or not to draw the armature's names per bone.
Parameters:
bool - specifies whether or not to draw names
           (type=boolean (true or false))

getBones()

Get all the Armature bones.
Returns:
a list of PyBone objects that make up the armature.
           (type=PyList)

getName()

Get the name of this Armature object.
Returns:
string

setName(name)

Set the name of this Armature object.
Parameters:
name - The new name.
           (type=string)

Class Variable Details

bones

A List of Bones that make up this armature.

name

The Armature name.

Generated by Epydoc 2.0 on Wed May 12 22:11:00 2004 http://epydoc.sf.net