Animation curves
Last updated
Last updated
You can use animation curve nodes to create a two-dimensional graph that describes a changing value. The most common use is to describe how a value changes over time.
For example, you could graph how an object's velocity should change over time - describing it's acceleration or deceleration behavior. Another example could be to graph the changing rate of particle emissions over time when simulating a firework.
Use the animation curve node to define a two-dimensional graph for an animation curve.
To edit the curve, select the thumbnail rectangle. This is initially a blank gray rectangle, but will show a preview of the graph.
To load a preset curve, select a thumbnail at the bottom of the animation curve editor panel. If the preset that you want to use is not visible, select the cog icon to open the presets panel.
To save a curve as a preset, complete the following steps:
In the animation curve editor, create the curve that you want to save as a preset.
In the lower-left corner of the animation curve editor, select the cog icon.
In the Presets panel, select New.
To move a key, select and drag the key.
To adjust the tangent of the curve at a key, first select the key, and then drag one of the grips that appears.
By default the curve is between 0 and 1.0 on both X and Y axis. You can drag the start and end keys to change the minimum and maximum values for the curve.
To add a key, right-click on the curve, and then select Add Key.
By default, an animation curve clamps values outside the defined X (time) range. To change the behavior, select the cog icon next to either the first or last keys, and select the desired behavior from the list that appears.
You can choose different behaviors for values before the graph and for values after the graph.
The following table describes the available options.
Loop
The graph repeats the same shape.
Ping Pong
The graph is mirrored.
Clamp
The graph retains a constant value.
Use an Animation Curve Evaluate
node to access values from an animation curve. You provide the time (X axis) value, and the node outputs the corresponding Y axis value.