Convert scripted animations into f-curves

Hi again,

how do you convert animations that you scripted via frame-pre loops into f-curves?

Simple example:

import bpy


def my_handler(scene):
    bpy.data.objects['Cube'].location.z += .1


bpy.app.handlers.frame_change_pre.append(my_handler)

Now I want to convert this animation into real keyframes.

Greetings,
drichter

what about the
Bake Action
makro?
Is it not working?

You get it by pressing space-bar in 3D-View
and type
Bake …
then one of the possible list-entries is the one for “Bake Action”
You have to select what, … object… armature and so on.

How cool is that! Didn’t know this one :slight_smile: