Armature export

Hi,

I like to export the armature of a mesh, but not the mesh. The mesh is yet exported with another 3D-Format. So is there an exporter in Blender which simply exports only the armature and the format could be easily read from my own application? The vertex groups are yet exported.

If not I try to export the armature into my own file format. I found this example in the python docs:

armatures = Armature.Get ()
for a in armatures:
print "Armature: ", a
print “- The root bones of %s: %s” % (a.name, a.getBones ())

This prints all bones, but not the information of which bone is the father or child of another bone. How could I get this information from the API?

So all information about exporting armature and files formats or yet existing exporters which support armature would help me much. Perhaps I could lear something from other armature exporters.

regards
Andreas

root_bone = armature.getBones()  #list of root bone
child_root = root_bone[0].getChildren() #list of its children
#.......etc.....getChildren()

Ben

you can find a function model to get the complete bones tree at this address:
http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_armature_renbone.htm

Great, this will save me a lot of time. Thanks.

Andreas