Blender Git Loki

Git Commits -> Revision f09a361

Revision f09a361 by Joseph Gilbert (master)
November 7, 2005, 20:03 (GMT)
*armature api for python
- don't get too excited
- allows you to get armatures from a scene
- makeEditable()/saveChanges() puts the armature into out of editmode (pythonically)
- Armature.bones is a dictionary that contains all the bones in the armature and can be iterated
- getters are available for:
name,
roll (dictionary) keys are BONESPACE, ARMATURESPACE
head (dictionary) keys are BONESPACE, ARMATURESPACE
tail (dictionary) keys are BONESPACE, ARMATURESPACE
matrix (dictionary) keys are BONESPACE, ARMATURESPACE
weight
deform_dist
subdivisions
options (list of constants)
parent
children

Setter work only in editmode. Some are not fully implemented.
Type class is embedded in the module. This means the construct is called as follows:
Blender.Armature.ArmatureType()

import Blender.Armature as Armature
arm = Armature.Get('myarm')
for name, bone in arm.bones.items():
...print name, bone, bone.matrix['ARMATURESPACE']

more documentation is forth coming. This is an alpha for this api.

Commit Details:

Full Hash: f09a3611be65c8fa8581a87c3d80a10e5c6eb65a
SVN Revision: 5727
Parent Commit: a39559e
Lines Changed: +1625, -2097

5 Modified Paths:

/source/blender/python/api2_2x/Armature.c (+783, -524) (Diff)
/source/blender/python/api2_2x/Armature.h (+24, -13) (Diff)
/source/blender/python/api2_2x/Bone.c (+738, -1551) (Diff)
/source/blender/python/api2_2x/Bone.h (+72, -3) (Diff)
/source/blender/python/api2_2x/Object.c (+8, -6) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021