Skip to main content

Layer

Every element in a composition sits on a layer. The layer controls when the element is shown and how it relates to other layers: its start, its duration, its stacking order, its visibility and its masks. The element controls what is shown. See Layers and elements.

Layers are listed in the Timeline panel, and drawing a new element adds a new layer.

Layers in the timeline​

  • Stacking order: a layer higher in the list is drawn on top of the layers below it. Drag a layer up or down to change the order.
  • Name: double-click a layer's name to rename it. When the element has a key, the timeline shows the key instead of the name, with a key icon.
  • Animated properties: click the arrow next to a layer to show the properties that have keyframes. See Animation.
  • Controls: hover over a layer to show its mask, hide and lock buttons.

To select layers, click them in the timeline. Hold Ctrl/Cmd to add a layer to the selection, or Shift to select every layer between two.

Timing​

Each layer has a bar on the timeline that shows when the element is on screen:

  • Drag the bar to move the layer in time.
  • Drag the start or end edge of the bar to change when the layer starts or ends.

Two options in the layer's right-click menu match a layer to the composition's workspace:

  • Fit to workspace makes the layer start at frame 0 and last for the whole workspace.
  • Fit end to workspace keeps the layer's start and makes it end where the workspace ends.

Both apply to every selected layer.

Hiding and locking​

  • Hide a layer to stop it being drawn. A hidden layer is still exported, hidden, and Actions can show it again with the Layer API's isVisible property.
  • Lock a layer so it can't be selected or changed on the canvas by accident. You can still select a locked layer in the timeline.

Guide layers​

A guide layer is for reference while you design, such as a screenshot of the show to align your graphic with. Guide layers are shown in Loopic but are never exported.

To make a layer a guide, right-click it and choose Set as guide. Guide layers have a cone icon in the timeline. Click the icon to turn the layer back into a normal layer.

A layer that masks another layer can't be set as a guide, because its mask would be lost on export.

Masks​

A Rectangle, Ellipse or Path layer can mask other layers in the same composition, so they only show inside its shape.

  1. Select exactly two layers: the mask and the layer to mask.
  2. Right-click one of them and choose Use 'mask' as mask for 'layer'.

The mask layer behaves like any other layer. Move, resize or animate it, and the masked area follows. It keeps masking even when it's hidden, so you can hide it to see the result without its shape on top.

One layer can mask several layers, and a layer can have several masks. With several masks, only the area inside all of them is shown.

Click the mask icon on a layer to see its mask links: the layers it masks and the layers masking it. You can remove a link from there.

For controlling masks from code, see the Mask API.

Key​

A key is a name that Actions code and the Template Definition Builder use to find an element. Set it in the Key field at the top of the Inspector panel when the layer is selected.

Keys must be unique within a composition. If another layer already uses the key, the Inspector shows an error. We recommend starting keys with an underscore and writing them in camel case, for example _homeTeamName. See Finding Elements.

Layer menu​

Right-click a layer in the timeline for these options:

OptionWhat it does
Set as guideTurns the layer into a guide layer.
ColorChanges the layer's color in the timeline, to help you organize layers.
Use as maskLinks two selected layers as a mask.
Move to nested compositionMoves the selected layers into a new composition.
Fit to workspaceSee Timing.
Fit end to workspaceSee Timing.
AlignAligns two or more selected layers by their left, center, right, top or bottom edge.
Copy, Cut, PasteCopies, cuts or pastes the selected layers.
DuplicateMakes a copy of the selected layers.
DeleteRemoves the selected layers.