Assets
Assets are a collection of source objects needed to fill layer information that could be shared between multiple layer instances.
They range from preComps, audios, images, font binaries.
These objects do not always have a specified type, when they don’t, content can be inferred from the requester.
Precomps
Precomps have three properties: id, name and layers.
Precomp id
The id of the precomp source
Precomp name
Details
Property name: nm
Property type: string
Required
The name of the source of the comp. This property is useful for expressions that reference another composition.
Precomp layers
The list of layers that compose a precomposition
Images
Images contain the information to obtain an image source. It can be expressed in different ways: inline or pointing to an external path.
Asset type
The type of the asset
Image id
The id of the image source
Image mode
The way information is stored to retrieve the asset.
Image width
The width of the image source
Image height
The height of the image source
Image path
The path of the image excluding the file name
Image name
If asset mode is 0, it indicates the file name of the image.
If asset mode is 1, it contains the embedded image encoded as base 64.
Audio
Audio contains the information to obtain an audio source. It can be expressed in different ways: inline or pointing to an external path.
Asset type
The type of the asset
Audio id
The id of the audio source
Audio mode
The way information is stored to retrieve the asset.
Audio path
The path of the audio excluding the file name
Audio name
If asset mode is 0, it indicates the file name of the audio.
If asset mode is 1, it contains the embedded audio encoded as base 64.