Skip to content

Precomp Layer Type

A Precomps is a container for a set of layers that are grouped and are adjusted by the properties that govern the precomp. It has four properties specific to the layer type (width, height, time remap, refId) and others shared with other layer types (transform, masks, effects, layer styles).

Definition Name Type Required Default
Type ty Layer Types 0
Width w Number
Height h Number
Time Remap tm Multi Dimensional Animated Property
Asset Reference refId String
Index ind Number
Transform ks Object
Parent parent Number
In Point ip Number
Out Point op Number
Start Point st Number
Time stretch sr Number 1
Masks masksProperties Array[Mask Elements]
Track Matte Masked Layer tt Matte Mask types
Track Matte Masking Layer td Number
Track Matte Masking Layer Index tp Number
Blend Mode bm Blend Mode types

Type Property

Details

Property name: ty

Property type: Layer Types

Property value: 0

Width

Details

Property name: w

Property type: Number

Required

Width defines the width of the surface that has to be rendered from the precomp. Whatever is outside that area won’t be visible even if it is within the visible area of the precomp container. It basically works as the width of a clipping mask of the inner layers.

Height

Details

Property name: h

Property type: Number

Required

Height defines the height of the surface that has to be rendered from the precomp. Whatever is outside that area will not be visible even if it is within the visible area of the precomp container. It basically works as the height of a clipping mask of the inner layers.

Time Remap

Details

Property name: tm

Property type: Multi Dimensional Animated Property

Required

Time remap allows control of the timeline of a precomp independently from the main timeline. It is expressed in seconds and since it is animatable, it can support any amount of keyframes, easing and expressions.

Asset Reference

Details

Property name: refId

Property type: String

Required

The refId property points to an object on the assets list that completes the composition information.