Keyframe Function
Back to
You are here: Reference > Functions > Keyframe Function

Keyframe Function

Function - Define a function using keyframes

Keyframes is a type of Function based on Keyframe-based interpolation.
A keyframe function is a collection of points, called Keyframe, or keys.
Those points specify a value the function will take a certain input position. That input would be time, in the case of Animation. But it can also be a percentage: imagine exposing a controller for the user, or mapping it to a fader on a hardware device. You would want the input (a given value, between 0% and 100%) to be remapped to something else (interpolate between a green and a red background).
Keyframe functions are very useful, because they allow you to define a number of intermediate points, and therefore to interpolate between a lot of different values between the beginning and the end of the functions. They offer a lot of control.
Keyframes are mostly used inside Timelines to define temporal animations, but they also can be used in for defining other types of functions such as Color Gradients or element-dependent curve parameters such as in Point Attributes.
To use a keyframe function you'll have to use the function editor :

If you want to animate a 2d or 3d parameter with curves, then you'll have to separate dimensions. To achieve that, change the track function from "key" to "split" with the function selector (check on the image above). Then just go in curves view.


See also Keyframe.