After Effects API Reference

The After Effects API is the host-specific layer that After Effects adds on top of UXP. Use it to inspect and update application state, project items, layers, properties, fonts, import options, and settings from a UXP plugin.

Access the API

Load the After Effects host module to access the application API. For example, group related changes into one undo step:

const app = require("aftereffects");

app.beginUndoGroup("Update composition");

// Make changes to the active project.

app.endUndoGroup();

Browse the API

Area
Use it to
Application
Access the running After Effects application, project, preferences, settings, and application commands.
CharacterRange
Read and set character-level styling for a range of text in a Text layer.
CompItem
Access and modify composition settings, layers, and markers.
ComposedLineRange
Inspect a single composed line of text within a Text layer.
DeferredCall
Track an asynchronous function call deferred until the script call stack clears.
FileSource
Inspect the file source associated with a project item.
FolderItem
Organize project items into folders.
Font
Read font properties and metadata.
Fonts
Find and manage fonts available to After Effects.
FootageItem
Inspect imported footage or solid-color items used as layer sources.
GuideOptions
Read and set the properties of a guide in a composition's viewer.
ImportOptions
Configure how files and footage are imported into a project.
ItemCollection
Create, access, and organize project items.
KeyframeEase
Read and set the ease applied to a property's keyframe.
Layer
Inspect and modify layers in a composition.
MarkerValue
Add and configure markers on layers.
MaskPropertyGroup
Read and set properties within a mask.
OMCollection
Access the output modules in a render-queue item.
OutputModule
Configure how a render-queue item is rendered and saved.
ParagraphRange
Read and set paragraph-level styling for text in a Text layer.
PlaceholderSource
Inspect the source of a placeholder footage item.
Property
Read, set, and animate layer and effect properties.
RenderQueue
Queue and manage compositions for rendering.
RenderQueueItem
Configure a composition queued for rendering.
RQItemCollection
Access the items in the render queue.
Settings
Store and retrieve After Effects application settings.
Shape
Read and set the outline used by a mask or shape layer path.
SolidSource
Inspect the source of a solid-color footage item.
TextDocument
Read and set the text and formatting of a Text layer's source text.
View
Inspect a view shown in a viewer panel.
Viewer
Access and configure a Composition, Layer, or Footage viewer panel.
ViewOptions
Configure the display options of a view.

Minimum Version Tags

Property and method tables include the minimum After Effects version where a member is available. Check the Min Version column before using an API so your plugin can support the intended host versions.

Shared UXP APIs

Use the After Effects API together with the shared UXP platform APIs for file access, storage, networking, HTML, CSS, and Spectrum UI. For those platform capabilities, start with the UXP Hub.