# Looping a Peg

If you want a peg to repeat an effect, you can loop the peg.

For example, if you had a scene with a boy walking across the stage with a bird circling his head, you would create a peg with a motion path of a single orbit for the bird. You would then loop the orbit motion path so that the bird would continue to circle the boys head for the duration of his motion path.

Each time the loop restarts, it skips the first frame of the peg. Similar to a walk-cycle where the last step leads naturally to the first step in the cycle, this ensures the logical continuation of the looped action. Therefore, if you loop a 10-frame peg three times, the entire length of the peg will be 28 frames.

To loop a peg:

1. [Control]-click the peg bar in the right panel of the Timeline window and select Change Loops. The Change Loops dialog box opens.

2. Type the number of times you want to repeat the selected peg and click OK.

The peg now repeats itself for the number of loops you selected. After the first segment, the peg bar of the looped segments is grey.

You can also loop a peg by pressing [Command] as you drag the end of the trackbar.

See Also
Animating Rotation with the Rotate Tool
Animating Size Changes with the Scale Tool
Animating Skewing with the Skew Tool