Layers

Common Properties

Layer

Common properties for all layers

Composition Diagram for Layer Layer Visual Object Visual Layer Shape Layer Null Layer Image Layer Solid Layer Precomposition Layer
Attribute Type Title Description
nm string

Name

Name, as seen from editors and the like

hd boolean

Hidden

Whether the layer is hidden

ty integer

Type

Layer Type

ind integer

Index

Index that can be used for parenting and referenced in expressions

parent integer

Parent Index

Must be the ind property of another layer

sr number

Time Stretch

Time Stretch

ip number

In Point

Frame when the layer becomes visible

op number

Out Point

Frame when the layer becomes invisible

st number

Start Time

Start Time

The ty property defines the specific layer type based on the following values:

ty Type
0 Precomposition Layer
2 Image Layer
3 Null Layer
1 Solid Layer
4 Shape Layer

Visual Layer

Layer used to affect visual elements

Composition Diagram for Visual Layer Visual Layer Layer Visual Object Shape Layer Null Layer Image Layer Solid Layer Precomposition Layer
Attribute Type Title Description
nm string

Name

Name, as seen from editors and the like

hd boolean

Hidden

Whether the layer is hidden

ty integer

Type

Layer Type

ind integer

Index

Index that can be used for parenting and referenced in expressions

parent integer

Parent Index

Must be the ind property of another layer

sr number

Time Stretch

Time Stretch

ip number

In Point

Frame when the layer becomes visible

op number

Out Point

Frame when the layer becomes invisible

st number

Start Time

Start Time

ks Transform

Transform

Layer transform

ao 0-1 integer

Auto Orient

If 1, The layer will rotate itself to match its animated position path

Layer types

Shape Layer

Layer containing Shapes

Composition Diagram for Shape Layer Shape Layer Visual Layer Layer Visual Object
Attribute Type Title Description
nm string

Name

Name, as seen from editors and the like

hd boolean

Hidden

Whether the layer is hidden

ty integer = 4

Type

Layer type

ind integer

Index

Index that can be used for parenting and referenced in expressions

parent integer

Parent Index

Must be the ind property of another layer

sr number

Time Stretch

Time Stretch

ip number

In Point

Frame when the layer becomes visible

op number

Out Point

Frame when the layer becomes invisible

st number

Start Time

Start Time

ks Transform

Transform

Layer transform

ao 0-1 integer

Auto Orient

If 1, The layer will rotate itself to match its animated position path

shapes array of Graphic Element

Shapes

Shapes

Image Layer

Layer containing an image

Composition Diagram for Image Layer Image Layer Visual Layer Layer Visual Object
Attribute Type Title Description
nm string

Name

Name, as seen from editors and the like

hd boolean

Hidden

Whether the layer is hidden

ty integer = 2

Type

Layer type

ind integer

Index

Index that can be used for parenting and referenced in expressions

parent integer

Parent Index

Must be the ind property of another layer

sr number

Time Stretch

Time Stretch

ip number

In Point

Frame when the layer becomes visible

op number

Out Point

Frame when the layer becomes invisible

st number

Start Time

Start Time

ks Transform

Transform

Layer transform

ao 0-1 integer

Auto Orient

If 1, The layer will rotate itself to match its animated position path

refId string

Reference Id

ID of the image as specified in the assets

Null Layer

Layer with no data, useful to group layers together

Composition Diagram for Null Layer Null Layer Visual Layer Layer Visual Object
Attribute Type Title Description
nm string

Name

Name, as seen from editors and the like

hd boolean

Hidden

Whether the layer is hidden

ty integer = 3

Type

Layer type

ind integer

Index

Index that can be used for parenting and referenced in expressions

parent integer

Parent Index

Must be the ind property of another layer

sr number

Time Stretch

Time Stretch

ip number

In Point

Frame when the layer becomes visible

op number

Out Point

Frame when the layer becomes invisible

st number

Start Time

Start Time

ks Transform

Transform

Layer transform

ao 0-1 integer

Auto Orient

If 1, The layer will rotate itself to match its animated position path

Solid Layer

Solid color, rectangle-shaped layer

Composition Diagram for Solid Layer Solid Layer Visual Layer Layer Visual Object
Attribute Type Title Description
nm string

Name

Name, as seen from editors and the like

hd boolean

Hidden

Whether the layer is hidden

ty integer = 1

Type

Layer type

ind integer

Index

Index that can be used for parenting and referenced in expressions

parent integer

Parent Index

Must be the ind property of another layer

sr number

Time Stretch

Time Stretch

ip number

In Point

Frame when the layer becomes visible

op number

Out Point

Frame when the layer becomes invisible

st number

Start Time

Start Time

ks Transform

Transform

Layer transform

ao 0-1 integer

Auto Orient

If 1, The layer will rotate itself to match its animated position path

sw integer

Width

Solid rectangle width

sh integer

Height

Solid rectangle height

sc Hex Color

Color

Solid fill color

Precomposition Layer

Layer that renders a Precomposition asset

Composition Diagram for Precomposition Layer Precomposition Layer Visual Layer Layer Visual Object
Attribute Type Title Description
nm string

Name

Name, as seen from editors and the like

hd boolean

Hidden

Whether the layer is hidden

ty integer = 0

Type

Layer type

ind integer

Index

Index that can be used for parenting and referenced in expressions

parent integer

Parent Index

Must be the ind property of another layer

sr number

Time Stretch

Time Stretch

ip number

In Point

Frame when the layer becomes visible

op number

Out Point

Frame when the layer becomes invisible

st number

Start Time

Start Time

ks Transform

Transform

Layer transform

ao 0-1 integer

Auto Orient

If 1, The layer will rotate itself to match its animated position path

refId string

Reference Id

ID of the precomp as specified in the assets

w integer

Width

Width of the clipping rect

h integer

Height

Height of the clipping rect