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:

  1. Double-click an Animation Data item or an Animation Clip to open it in the Animation Clip Editor.

  2. In the Animation Clip Editor use the Move tool image0 to select two or more keyframes and then select the interpolation mode:

    • image1

      Linear interpolation creates a linear transition between keyframe values.

    • image2

      Step interpolation keeps the value of the current keyframe constant up until the following keyframe.

    • image3

      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 image4 to select the keyframes and click image5.

    ../../_images/select-first-two-keyframes1.png ../../_images/select-bezier-interpolation-type1.png

Using interpolation types in the API

For details, see BezierKeyframe, LinearKeyframe, and StepKeyframe classes in the Kanzi Engine API reference.