# Changing the Duration of a Peg

If you add content or change the exposure of content that you have already attached to a peg and designed effects for, you may need to extend the duration of the peg.

Let’s say that you have a 24 frame walk-cycle. You drew the character walking in place, so you must create a motion path with a peg for your drawings to follow.

The duration of the peg element your cycle is attached to is 20 frames only. If you did not change this, your character would appear to walk in place from frame 20 to 24. For your character to continue moving as he walks from frame 20 to 24, you must extend the duration of the peg by four frames, from frame 20 to 24.

There are a number of ways you can change the duration of a peg.

| The blue Arrow and the Red/Green button next to the peg determine if changes in the start time or duration of the parent peg will affect child elements. See Timing Pegs and Child Elements.

To change the duration of peg by dragging the trackbar:

- Move the pointer to the edge of the peg in the right panel of the Timeline window and drag the trackbar to the left or right to increase or decrease the length of the peg. A peg must always be at least two frames in length.

Toon Boom Studio inserts a keyframe at the original last keyframe and gives both the original and the new last keyframe the same values.

- You can stretch the peg and move all of the keyframes proportionally by pressing [Shift] as you drag.
- You can loop the peg by pressing [Command] as you drag.

To change the duration of a peg using the Change Duration command:

- [Control]-click the peg, select Change Duration from the pop-up menu, type the new length of the peg, and click OK.

To change the duration of a peg using the Extend Exposure command:

1. In the Timeline window , use the red frame slider to select the frame you want to extend the peg to.

2. Select the peg in the Timeline window, and select Element > Cell > Extend Exposure. Toon Boom Studio changes the duration of the peg and adjust all effects so that you maintain the effect that you created before you extended the peg.

Toon Boom Studio inserts a keyframe at the original last keyframe and gives both the original and new last keyframe the same values.

See Also
Exposure Sheet and Timeline Windows
Changing the Timing (Exposure) of Drawings and Images
Looping a Peg