I am trying to write an animation exporter for my engine from Blender, and I have the following code:
obj = Blender.Object.Get( o ) par = obj.getParent() # Get the armature if( par and par.getType() == "Armature" ): a = par.getAction() # Get All IPOs for i in a.getAllChannelIpos(): # Get curves c = a.getChannelIpo( i )
My questions are:
How can I get the total amount of frame of the current Armature, as well as it’s speed (fps), cuz I can only get the one set for the current scene.
How can I extract the IPO Curve for every actions? I need to extract ALL the LocXYZ, Quaternion WXYZ and SizeXYZ for every frame, in order to associate them to the object current bone.
I can’t figure out out to get theses informations… does someone have pieces of code that can help me…
Tks in advance,