Skip to content

objectmodel

The After Effects Object Model

As you look through this reference section, which is organized alphabetically by object, you can refer to the following diagrams for an overview of where the various objects fall within the hierarchy, and their correspondence to the user interface.

After Effects Object Model Hierarchy diagram of the main After Effects scripting objects

Note that the Extendscript File, Folder, and Socket objects are defined by ExtendScript, and are documented in the JavaScript Tools Guide.

ExtendScript also defines the ScriptUI module, a set of window and user-interface control objects, which are available to After Effects scripts. These are also documented in the JavaScript Tools Guide.

The hierarchy of objects in scripting corresponds to the hierarchy in the user interface.

After Effects User Interface

The application contains a Project panel, which displays a project. The project contains compositions, which contain layers. The source for a layer can be a footage file, placeholder, or solid, also listed in the Project panel. Each layer contains settings known as properties, and these can contain markers and keyframes. The renderqueue contains render-queue items as well as render settings and output modules. All of these entities are represented by objects in scripting.

Object summary

The following table lists all objects alphabetically, with links to the documentation page for each.

ObjectDescription
Global functionsGlobally available functions that allow you to display text for script debugging purposes, and help convert time values between seconds and frames.
Application objectA single global object, available by its name (app), that provides access to objects and application settings within the After Effects application.
AVItem objectRepresents audio/visual files imported into After Effects.
AVLayer objectRepresents those layers that contain AVItem objects (composition layers, footage layers, solid layers, text layers, and sound layers).
CameraLayer objectRepresents a camera layer within a composition.
Collection objectAssociates a set of objects or values as a logical group and provides access to them by index.
CompItem objectRepresents a composition, and allows you to manipulate it and get information about it.
FileSource objectDescribes footage that comes from a file.
FolderItem objectRepresents a folder in the Project panel.
FootageItem objectRepresents a footage item imported into a project, which appears in the Project panel.
FootageSource objectDescribes the file source of some footage.
ImportOptions objectEncapsulates options for importing files into After Effects.
Item objectRepresents an item in a project that appears in the Project panel.
ItemCollection objectCollects items in a project.
KeyframeEase objectEncapsulates keyframe ease values in an After Effects property.
Layer objectA base class for layer classes.
LayerCollection objectCollects layers in a project.
LightLayer objectRepresents a light layer within a composition.
MarkerValue objectEncapsulates marker values in an After Effects property.
MaskPropertyGroup objectEncapsulates mask attributes in a layer.
OMCollection objectCollects output modules in a render queue.
OutputModule objectRepresents an output module for a render queue.
PlaceholderSource objectDescribes a placeholder for footage.
Project objectRepresents an After Effects project.
Property objectRepresents an After Effects property.
PropertyBase objectA base class for After Effects property and property group classes.
PropertyGroup objectRepresents an After Effects property group.
RenderQueue objectRepresents the After Effects render queue.
RenderQueueItem objectRepresents a renderable item in a render queue.
RenderQueueItem objectCollects render-queue items in a render queue.
RQItemCollection objectProvides access to application settings and preferences.
Shape objectEncapsulates the outline shape information for a mask.
ShapeLayer objectRepresents a shape layer within a composition.
SolidSource objectDescribes a solid color that is the source of some footage.
System objectProvides access to the operating system from the application.
TextDocument objectEncapsulates the text in a text layer.
TextLayer objectRepresents a text layer within a composition.
Viewer objectRepresents a Composition, Layer, or Footage panel.