Changing the interpolation mode between keyframes¶
You can change the transition mode between keyframes in your animations by using different interpolation types. In Kanzi you can use linear, step, and Bezier interpolation types.
To change the interpolation mode between keyframes:
Double-click an Animation Data item or an Animation Clip to open it in the Animation Clip Editor.
In the Animation Clip Editor use the Move tool to select two or more keyframes and then select the interpolation mode:
-
Linear interpolation creates a linear transition between keyframe values.
-
Step interpolation keeps the value of the current keyframe constant up until the following keyframe.
-
Bezier interpolation interpolates the values between keyframes using the Bezier polynomial.
For example, to convert keyframes from linear to Bezier interpolation, use the Move tool to select the keyframes and click .
-
Using interpolation types in the API¶
For details, see BezierKeyframe
, LinearKeyframe
, and StepKeyframe
classes in the Kanzi Engine API reference.