Logo Search packages:      
Sourcecode: blender version File versions  Download package

Armature::Bone Class Reference

List of all members.


Detailed Description

The Bone object
===============
      This object gives access to Bone-specific data in Blender. This object
      cannot be instantiated but is returned by BonesDict when the armature is not in editmode.
@ivar name: The name of this Bone.
@type name: String
@ivar roll: This Bone's roll value.
      Keys are:
             - 'ARMATURESPACE' - this roll in relation to the armature
             - 'BONESPACE' - the roll in relation to itself 
@type roll: Dictionary
@ivar head: This Bone's "head" ending position when in rest state.
      Keys are:
             - 'ARMATURESPACE' - this head position in relation to the armature
             - 'BONESPACE' - the head position in relation to itself.
@type head: Dictionary
@ivar tail: This Bone's "tail" ending position when in rest state.
      Keys are:
             - 'ARMATURESPACE' - this tail position in relation to the armature
             - 'BONESPACE' - the tail position in relation to itself 
@type tail: Dictionary
@ivar matrix: This Bone's matrix. This cannot be set.
      Keys are:
             - 'ARMATURESPACE' - this matrix of the bone in relation to the armature
             - 'BONESPACE' - the matrix of the bone in relation to itself 
@type matrix: Matrix Object
@ivar parent: The parent Bone.
@type parent: Bone Object
@ivar children: The children directly attached to this bone.
@type children: List of Bone Objects
@ivar weight: The bone's weight.
@type weight: Float
@ivar options: Various bone options which can be:
             - Armature.CONNECTED: IK to parent
             - Armature.HINGE: No parent rotation or scaling
             - Armature.NO_DEFORM: The bone does not deform geometry
             - Armature.MULTIPLY: Multiply vgroups by envelope
             - Armature.HIDDEN_EDIT: Hide bones in editmode
             - Armature.ROOT_SELECTED: Selection of root ball of bone
             - Armature.BONE_SELECTED: Selection of bone
             - Armature.TIP_SELECTED: Selection of tip ball of bone
@type options: List of Constants
@ivar subdivision: The number of bone subdivisions.
@type subdivision: Int
@ivar deformDist: The deform distance of the bone
@type deformDist: Float
@ivar length: The length of the bone. This cannot be set.
@type length: Float
@ivar headRadius: The radius of this bones head (used for envalope bones)
@type headRadius: Float
@ivar tailRadius: The radius of this bones head (used for envalope bones)
@type tailRadius: Float
@ivar layerMask: Layer bitmask
      Example::
            # set bone to layers 14 and 16
            bone.layerMask = (1<<13) + (1<<15)
@type layerMask: Int

Definition at line 246 of file Armature.py.


Public Member Functions

def getAllChildren
def hasChildren
def hasParent

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index