Tutorials > Controlling Layout with Nested Compositions

Controlling Layout with Nested Compositions

In this tutorial you will learn how to align header and sub-header text layers to the left-most position in their parent composition while centering that parent in a master comp. In this case, the composition containing the header and sub-header layers represents the maximum area either of them can fill. You will use the Scaling Layers parameter with nesting to have absolute control over the maximum dimensions of dynamic layers.

 

  1. Create a new composition, and name it Content. The size of the comp should correspond to the maximum pixel dimensions that you want the header and sub-header layers to fill.
  2. Create a text layer within the composition you just added, and name it Header.
  3. Create another text layer within the composition and name it Sub-header. The Sub-header layer should be visible below the Header layer.
  4. Attach the Sub-header layer to the Header layer. Specify the attachment location as Bottom Edge.
  5. Set the alignment to left for both layers.
  6. Create a new composition, and name it Slate.
  7. Insert the Content composition into the Slate composition. Drag the Content composition from the project panel directly into the Slate composition timeline.
  8. Apply the Templater Settings effect to the Content composition. Under Align, check Initialize to center.
  9. To see how the layers arrange themselves, select Current State from the Preview Uses drop down in the Templater panel. Then click Preview.