# Adding Pegs and Attaching Elements to Pegs

To animate an element, or change it over time, you must attach it to a peg.

There are two ways to attach an element to a peg. The first way we describe is longer than the second.

To add a peg and attach an element to it:

1. Click the Add Peg button in the Timeline window. A peg appears above the currently selected element in the Timeline.

2. In the left-side of the Timeline window, select the element you want attach to the peg and drag it on top of the peg element.

3. When the peg element becomes highlighted, release the mouse button. The selected element is now attached to the peg. In our terminology, the element is now a child of the parent peg.

4. To rename the peg, select the peg and select Element > Rename Element.

You must give the peg a unique name. You can include the name of the element it affects. For example, you could call the peg hair-Peg.

| You can improve the display quality of pegs in the View windows by selecting the Smooth Pegs option on the Display tab of the Preferences dialog box. When this option is enabled, Toon Boom Studio applies anti-aliasing to the peg spline.

To add a peg and attach an element to it:

1. Select the elements you want to attach to the peg.

2. Click the Parent Peg button in the Timeline.

Toon Boom Studio adds a peg for each element you selected and attaches them to the new pegs in the Timeline.

See Also
Showing/Hiding Elements
Repositioning Elements
Changing the Duration of a Peg
Looping a Peg
Configuring Video Card Display Options