Page 1 of 1

Bezier Curves

Posted: Tue Mar 26, 2013 1:37 am
by DonLuccar
Hi there,

Currently I am working on an exporter. But I am stuck on the animation.

I want to export the keyframes and interpolation information, so the Bezier control points. The only problem is that I don't know how to access the data.

I would be really glad about a solution which gives me back the keyframes as bpy.types.Keyframe objects, so that I could read out all the interpolation information from that.



Allready thanks in advance ^o^

Posted: Wed Mar 27, 2013 12:15 am
by DonLuccar
Ok i've solved it =^ω^=

For anyone who has the same problem:

bpy.data.actions
is a list with all animation channels

bpy.data.actions[...].fcurves[0].keyframe_points
is a list with all keyframes of the channel as Keyframe objects