Module Armature :: Class BonesDict

Class BonesDict

source code

The BonesDict object

This object gives gives dictionary like access to the bones in an armature. It is internal to blender but is called as 'Armature.bones'

Removing a bone: Example:
       del myArmature.bones['bone_name']
Adding a bone: Example:
       myEditBone = Armature.Editbone()
       myArmature.bones['bone_name'] = myEditBone


Instance Methods
string, BPy_bone
items()
Return the key, value pairs in this dictionary
source code
string
keys()
Return the keys in this dictionary
source code
BPy_bone
values()
Return the values in this dictionary
source code
Method Details

items()

source code 
Return the key, value pairs in this dictionary
Returns: string, BPy_bone
All strings, and py_bones in the armature (in that order)

keys()

source code 
Return the keys in this dictionary
Returns: string
All strings representing the bone names

values()

source code 
Return the values in this dictionary
Returns: BPy_bone
All BPy_bones in this dictionary