[Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x Armature.c Armature.h Bone.c Bone.h Object.c
Joseph Gilbert
models at paposo.com
Mon Nov 7 21:03:33 CET 2005
ascotan (Joseph Gilbert) 2005/11/07 21:03:33 CET
Modified files:
blender/source/blender/python/api2_2x Armature.c Armature.h
Bone.c Bone.h Object.c
Log:
*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.
Revision Changes Path
1.21 +791 -532 blender/source/blender/python/api2_2x/Armature.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Armature.c.diff?r1=1.20&r2=1.21&cvsroot=bf-blender>
1.12 +25 -14 blender/source/blender/python/api2_2x/Armature.h
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Armature.h.diff?r1=1.11&r2=1.12&cvsroot=bf-blender>
1.37 +744 -1557 blender/source/blender/python/api2_2x/Bone.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Bone.c.diff?r1=1.36&r2=1.37&cvsroot=bf-blender>
1.8 +73 -4 blender/source/blender/python/api2_2x/Bone.h
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Bone.h.diff?r1=1.7&r2=1.8&cvsroot=bf-blender>
1.142 +9 -7 blender/source/blender/python/api2_2x/Object.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Object.c.diff?r1=1.141&r2=1.142&cvsroot=bf-blender>
More information about the Bf-blender-cvs
mailing list