Helpers

Transform

Layer transform

Composition Diagram for Transform Transform Transform Shape
Attribute Type Title Description
a Position

Anchor Point

Anchor point: a position (relative to its parent) around which transformations are applied (ie: center for rotation / scale)

p Position

Position

Position / Translation

r Scalar

Rotation

Rotation in degrees, clockwise

s Vector

Scale

Scale factor, [100, 100] for no scaling

o Scalar

Opacity

Opacity

sk Scalar

Skew

Skew amount as an angle in degrees

sa Scalar

Skew Axis

Direction along which skew is applied, in degrees (0 skews along the X axis, 90 along the Y axis)

To make the anchor point properly line up with the center of location, p and a should have the same value.

This example allows you to tweak transform attributes and see how the shape changes.

The anchor point is highlighted with an orange dot.

256
256
256
256
100
100
0
0
0
100

Visual Object

Composition Diagram for Visual Object Visual Object Animation Layer Visual Layer Shape Layer Null Layer Image Layer Solid Layer Precomposition Layer Graphic Element Shape Ellipse Rectangle Path PolyStar Modifier Trim Path Shape Style Fill Stroke Transform Shape Group Stroke Dash
Attribute Type Title Description
nm string

Name

Name, as seen from editors and the like

Marker

Defines named portions of the composition.

Attribute Type Title Description
cm string

Comment

Comment

tm number

Time

Time

dr number

Duration

Duration