Export bones animation with fcurve datas

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
melaugui
Posts: 0
Joined: Thu Aug 29, 2013 4:54 pm

Export bones animation with fcurve datas

Post by melaugui »

Hi,

I'm trying to export every changes of a simple bone animation, without success...

for each keyFrame of my animation, I'm getting :
- a Position vector
- a Rotation quaternion (Euler)
- a Scaling vector
which are extracted to an array with this code :

Code: Select all

for fcurve in myActionAnim.fcurves:
          myArray.append(fcurve.evaluate(frameNumber))
Problem is : how to create one 4x4 matrix with all those values to export it correctly ?
If you know how to help...

Thanks,
~Gui

Post Reply