To solve the problem of the sun, birds, and clouds overlapping the window frame, you must first adjust the hierarchy of the layers within the composition. Then you’ll use an alpha track matte to allow the outside scenery to show through the window, but not appear to be inside the room.
Precomposing layers
You’ll start by precomposing the Sun, Birds, and Clouds layers into one composition.
- Shift-click to select the Sun, Birds, and Clouds layers in the Timeline panel.
- Choose Layer > Pre-compose.
- In the Pre-compose dialog box, name the new composition Window Contents. Make sure the Move All Attributes Into The New Composition option is selected, and select Open New Composition. Then click OK.
- Click the sunrise Timeline panel to see the contents of the main composition. Notice that the Sun, Birds, and Clouds layers have been replaced by the Window Contents layer, which refers to the Window Contents composition.
A new Timeline panel named Window Contents appears. It contains the Sun, Birds, and Clouds layers you selected in step 1 above. The Window Contents composition also appears in the Composition window.