Does anybody know how I can access Armatures using the Python API?
I need to export a complete Mesh (Vertices, Faces, UV-Coords, Armatures,
Animation-Keys) to create a model for my GPL 3D-Game....
Except Armatures and Animation-Keys I got everything exported yet...
Thanks and Greetings
I am afraid that, as others will confirm later, that there is no way to access Armatures with a python script, in Blender..... Unfortunately we will both (since I was working on a similar project of mine.....), have to wait a bit......
But at least you can access the individual bones Action ipo's. I don't know how this could help you though......
Open the .blend file you are working on and try:
obj = Blender.Ipo.get()
This is lame, but it will give you, assuming that you have done some animation and have set some action keys, the names of all the action ipo's. I don't know how the action ipo's could be useful in what you want to do, but this is a good start, I guess.........
Hope this helps..........
Infidel difilers. Now they know why they fear night!!! Thulsa Doom.
this is a long shot, but you could try parenting empties to everybone and get the data from there.
you could have some kind of naming convention for the empties so that the script can determine the chain heirarchy of the bones, then use their global co-ordinates in relation to an empty parented at the root of the armature to determine their size and rotation.
of course, you still wouldn't be able to export weight groups and things like that.
do some hacking in the source, see what you can find.
i think the main problem with exporting armature info is that armatures use quaternion rotation, whereas everything else in blender uses euler rotation.