Animation Curves Docker¶
The Animation Curve docker allows you to edit tweened sections by means of interpolation curves. As of this time of writing, it can only edit opacity.
The idea is that sometimes what you want to animate can be expressed as a value. This allows the computer to do maths on the values, and automate tasks, like interpolation, also known as ‘Tweening’. Because these are values, like percentage opacity, and animation happens over time, that means we can visualize the way the values are interpolated as a curve graph, and also edit the graph that way.
But, when you first open this docker, there’s no curves visible! You will first need to add opacity keyframes to the active animation layer. You can do this by using the animation docker and selection Add new keyframe.
Opacity should create a bright red curve line in the docker. On the left, in the layer list, you will see that the active layer has an outline of its properties: A red Opacity has appeared. Pressing the red dot will hide the current curve, which’ll be more useful in the future when more properties can be animated.
If you select a dot of the curve, you can move it around to shift its place in the time-line or its value.
On the top, you can select the method of smoothing:
- Hold Value
This keeps the value the same until there’s a new keyframe.
- Linear Interpolation (Default)
This gives a straight interpolation between two values.
- Custom interpolation
This allows you to set the section after the keyframe node as one that can be modified. +dragging on the node allows you to drag out a handler node for adjusting the curving.
So, for example, making a 100% opacity keyframe on frame 0 and a 0% opacity one on frame 24 gives the following result:
If we select frame 12 and press Add New Keyframe a new opacity keyframe will be added on that spot. We can set this frame to 100% and set frame 0 to 0% for this effect.
Now, if we want easing in, we select the node on frame 0 and press the Custom Interpolation button at the top. This will enable custom interpolation on the curve between frames 0 and 12. Doing the same on frame 12 will enable custom interpolation between frames 12 and 24. Drag from the node to add a handle, which in turn you can use to get the following effects:
The above shows an ease-in curve.
And convex/concave examples:
As you may be able to tell, there’s quite a different ‘texture’, so to speak, to each of these animations, despite the difference being only in the curves. Indeed, a good animator can get quite some tricks out of interpolation curves, and as we develop Krita, we hope to add more properties for you to animate this way.
Opacity has currently 255 as maximum in the curve editor, as that’s how opacity is stored internally