PrecompositionLayer

Precomposing is the process of packaging a series of layers into a new composition in After Effects. In a way it's the same as grouping layers in Photoshop. By grouping these layers together you can add animation, effects, or masks that will then be applied to all of the layers within.

Mapped field: ty

Mapped Field Value: 0

Hierarchy

  • Layer

    • PrecompositionLayer

Constructors

constructor

Properties

anchor

anchor: Property = new Property(this, PropertyType.ANCHOR)

autoOrient

autoOrient: boolean = false

blendMode

blendMode: BlendMode = BlendMode.NORMAL

classNames

classNames: string[] = []

effects

effects: any

height

height: number = 0

id

id: string = ""

inPoint

inPoint: number = 0

Optional index

index: undefined | number

is3D

is3D: boolean = false

name

name: string = ""

opacity

opacity: Property = new Property(this, PropertyType.OPACITY)

Optional orientation

outPoint

outPoint: number = 0

Protected parent

parent: any

position

position: Property = new Property(this, PropertyType.POSITION)

Optional refId

refId: undefined | string

Optional rotation

Optional rotationX

Optional rotationY

Optional rotationZ

scale

scale: Property = new Property(this, PropertyType.SCALE)

startTime

startTime: number = 0

timeRemap

timeRemap: any

timeStretch

timeStretch: number = 1

Readonly type

width

width: number = 0

Accessors

colors

  • get colors(): string[]

  • Returns string[]

    Array of colors.

totalFrames

  • get totalFrames(): number

  • Returns number

    Number of frames.

Methods

fromJSON

toJSON

  • toJSON(): Record<string, any>

  • Returns Record<string, any>

    JSON object

Last updated