# Adding Keyframes and Changing their Value

Add keyframes to a plotline in the Function Editor when you want to create an effect that changes over time.

Here are two examples of when you would add a keyframe to a plotline.

Example 1: Rotation

Let's say that you have an object that you want to rotate to 450 degrees to the right between frames 1 and 5. Then, rotate 200 degrees to the left and finally back to zero rotation.

After you attach the element to a peg, you would access the Rotation function in the Function Editor, add keyframes at each frame, and then change the rotation value of the keyframes to the desired rotation angle.

Example 2: Motion

For this example, let's say that you want your character to jump up and down in place.

Open the Motion Path function in the Function Editor. In the north/south projection of the plotline, add keyframes at each frame where you want the character's motion to be up or down. Then, move the keyframes on the plotline to create the jumping effect.

To add keyframes to a plotline and change their value:

1. Select the frame on the plotline where you want to add a keyframe. You can use one of the following methods.

- Activate the Select tool from the Tools panel and click the frame in the plotline.
- Type the value in the x-axis field of the Function Values panel and press [Enter].

2. Click the Add Keyframe button in the Tools panel.

The keyframe appears at the frame number you selected. Now you can change the value of the keyframe you added.

3. Click and drag the point to the new y-axis value. Notice that the y-axis value changes in the Function Values panel. To get a more precise value, you can type the value in this field.

The shape of the curve you create reflects the speed of the effect you are creating.

- For the rotation, scale, velocity, and field-of-view functions, you can change the shape of the plotline to create different velocity effects (like ease-in and ease-out).
- When you are working on the motion path and pivot path functions, you can modify the speed of a change by accessing the velocity functions.

See Also
Reshaping the Plotline in the Function Editor
Changing Your View of the Function Editor