Baking a Curve

Whether from an expression or a keyframed curve, you can convert part or all of a curve to keyframes.

Generating Keyframes from a Curve or Expression

1.   Right-click on the parameter.
2.   Select Bake to FCurve... .

The Bake to Curve dialog displays.

3.   Change the dialog values to suit the curve you are creating. You can change the:

startFrame - the frame to start generating keys.

endFrame - the last frame to generate a key.

interval - how often to generate a key (in frames).

4.   Click Bake.

The parameter changes from an expression to a curve and keys are generated from startFrame to endFrame.

All the newly generated keys are assigned the linear segment function.

The expression abs(sin(frame*pi/40))
displayed in the Curve Editor.

The baked curve with a startFrame of 0, endFrame of 80, and an interval of 10.

Note:  Although most commonly used with expressions, Bake to FCurve... can be used to automatically generate keyframes for any type of parameter, whether it’s an expression, a constant, or already a curve.