# Building Peg Hierarchies

You can attach pegs to pegs to combine effects on their child drawing and image elements.

In the following example, we created a scene of a boy walking across a lawn with a bird flying in circles over his head. The primary action is the motion of the two characters across the scene. The bird has another secondary action, that of circling the boy’s head.

To achieve this effect, you must attach the bird and its peg to the boy’s peg, building what we call a peg hierarchy. In this example, the bird’s motion path is a child of the motion path of the boy.

To build the peg hierarchy in this example:

1. Attach the Boy element to a peg that defines a horizontal motion path.

2. Attach the Bird element to a peg that makes the bird fly in circles around the boy.

3. Attach the Bird’s peg to the Boy’s peg so that the bird moves across the scene as it flies in circles around the boy.

See Also
Exposure Sheet and Timeline Windows
Adding Pegs and Attaching Elements to Pegs