After Effects MCP Server

v0.1.0
io.github.zachshallbetter/adobe-mcp-aftereffects Checked 16 hours ago Published 1 month ago

Drive Adobe After Effects from any MCP client: compositions, layers, animation and rendering.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_project_info Get Project Info

Describe the open project: file, unsaved changes, bit depth, working colour space, expression engine, item counts by type, the active item and the render queue

list_items List Items

List project items (compositions, footage, folders) with their id, type, folder and size. Ids are what other tools take

ParameterTypeDescription
folderintegerOnly items inside this folder (id)
typestringOnly this type

import_files Import Files

Import files into the project (File > Import): footage, image sequences, layered Photoshop or Illustrator files as footage or compositions, another After Effects or Premiere Pro project, data files (JSON, mgJSON, CSV, TSV), or a .jsx expression library that expressions call through footage("name.jsx"), optionally into a folder

ParameterTypeDescription
files *arrayAbsolute paths
folderintegerPut the items in this folder (id)
importAsstringDefault footage
sequencebooleanImport the numbered files after each as an image sequence. Default false

create_folder Create Folder

Add a folder to the Project panel, optionally inside another folder, and move items into it

ParameterTypeDescription
name *string
itemsarrayItem ids to move into the new folder
parentintegerParent folder id

manage_items Manage Items

Rename, move to a folder, set the label colour of, or delete project items

ParameterTypeDescription
items *arrayItem ids
deletebooleanDelete the items. Default false
folderintegerMove into this folder (id); 0 for the root
labelintegerLabel colour number, 0 = none
renamestringNew name (one item only)

save_project Save Project

Save the project in place, or as a new .aep file (the project then refers to it)

ParameterTypeDescription
filePathstringAbsolute .aep path. Omit to save in place

open_project Open Project

Open an .aep project, an .aet template (which opens as an untitled copy) or a .mogrt Motion Graphics template as a project, or start a new empty one. Unsaved changes in the current project are discarded, so save first

ParameterTypeDescription
filePathstringAbsolute .aep, .aepx, .aet or .mogrt path. Omit for a new project

tidy_project Tidy Project

Remove unused footage, consolidate duplicate footage, or reduce the project to the chosen compositions and what they use (File > Dependencies)

ParameterTypeDescription
operation *string
keeparrayreduce_project: composition ids to keep

save_project_copy Save Project Copy

Save a copy of the project while it keeps its own file (File > Save As > Save a Copy), or a copy in the text-based XML format (Save a Copy As XML, .aepx). The project must have been saved; saveFirst saves it in place first

ParameterTypeDescription
filePath *stringAbsolute path of the copy: .aep, or .aepx for XML
saveFirstbooleanSave unsaved changes in place first, so the copy includes them. Default false

run_project_command Run Project Command

Project file commands: close the project (File > Close Project), revert to the last saved version (File > Revert), open the most recent project (File > Open Recent), or save a numbered copy and continue in it (File > Increment and Save). Close, revert and open_most_recent can lose unsaved work

ParameterTypeDescription
command *stringThe command
unsavedstringclose, open_most_recent: what to do with unsaved changes. Required when there are any

set_project_settings Set Project Settings

Read or change project settings (File > Project Settings): time display style (timecode or frames), footage start time, feet + frames and film type, frame count start, colour depth, expression engine, and the transparency grid in Project panel thumbnails. With no changes it returns the current settings

ParameterTypeDescription
bitsPerChannelintegerColour depth in bits per channel
expressionEnginestringExpressions engine
feetAndFramesbooleanFrames: Use Feet + Frames
filmTypestringFeet + Frames film
footageStartstringTimecode: Footage Start Time from the source media or 00:00:00:00
frameCountstringFrames: Frame Count
timeDisplaystringTime Display Style
transparencyGridThumbnailsbooleanThumbnail Transparency Grid in the Project panel

find_project_items Find Project Items

Search the project like the Project panel search field (File > Find): items whose name or comment contains text, and items that are missing, unused or used, optionally of one type

ParameterTypeDescription
statusstringmissing: footage whose file cannot be found; unused or used in any composition
textstringText to find in names and comments (case-insensitive)
typestringOnly this type

select_project_items Select Project Items

Select items in the Project panel: replace the selection, add to it (extend the selection), remove from it, or clear it; optionally show the Project panel. Menu commands act on this selection

ParameterTypeDescription
itemsarrayItem ids. Omit or leave empty with mode replace to clear the selection
modestringDefault replace
showPanelbooleanShow the Project panel. Default false

set_item_comment Set Item Comment

Set the Comment column text of project items; an empty comment clears it

ParameterTypeDescription
comment *stringComment text
items *arrayItem ids

find_missing_dependencies Find Missing Dependencies

Find missing footage, effects or fonts (File > Dependencies > Find Missing Footage, Find Missing Effects, Find Missing Fonts). Footage and fonts are listed; reveal also runs the menu command, which shows them in the Project or Timeline panel. Missing effects can only be revealed

ParameterTypeDescription
kind *stringWhat to look for
revealbooleanRun the Find Missing menu command too. Default false; always true for effects

resolve_project_fonts Resolve Project Fonts

List the fonts the project uses, marking ones that are missing and substituted (as in the Resolve Fonts dialog), or replace fonts across every text layer

ParameterTypeDescription
replacearrayReplacements to make, by PostScript name. Omit to list fonts

edit_project_metadata Edit Project Metadata

Read or replace the project's XMP metadata (shown in the Metadata panel and in Adobe Bridge). showPanel toggles Window > Metadata

ParameterTypeDescription
showPanelbooleanToggle the Metadata panel. Default false
xmpstringA complete XMP packet (x:xmpmeta) that replaces the project's. Omit to read it

get_footage_info Get Footage Info

Describe footage items (Project panel, Interpret Footage): source kind (file, solid, placeholder), file and missing path, alpha, frame rates, fields and pulldown, pixel aspect, loop, proxy and the compositions that use each item

ParameterTypeDescription
itemsarrayFootage item ids. Omit for every footage item
missingOnlybooleanOnly items whose source file is missing. Default false

interpret_footage Interpret Footage

Change how footage is interpreted (File > Interpret Footage > Main or Proxy): alpha (ignore, straight, premultiplied with a matte colour, or guess), invert alpha, frame rate, field order, Preserve Edges, pulldown removal or guessing, pixel aspect ratio and loop count. copyFrom applies another item's interpretation first (Remember Interpretation, then Apply Interpretation)

ParameterTypeDescription
items *arrayFootage item ids (from list_items or get_footage_info)
alphastringAlpha: Ignore, Straight - Unmatted, Premultiplied - Matted With Color, or Guess
copyFromintegerFootage item id whose main interpretation is copied first: alpha, matte colour, invert alpha, frame rate, fields, Preserve Edges, pulldown, loop and pixel aspect
fieldsstringSeparate Fields: off, upper field first, lower field first
frameRatenumberConform to this frame rate (Assume This Frame Rate for stills); 0 returns to the file's own rate
invertAlphabooleanInvert Alpha
loopintegerLoop the footage this many times
matteColorstringMatte colour for premultiplied alpha: "#RRGGBB" or "rgb(r,g,b)"
pixelAspectnumberPixel aspect ratio, e.g. 1 (square), 0.9091 (D1/DV NTSC), 1.0940 (D1/DV PAL), 2 (anamorphic 2:1), 1.3333 (HDV 1080). Main footage only
preserveEdgesbooleanPreserve Edges (Best Quality Only) for separated fields
pulldownstringRemove pulldown: a phase (W = whole frame, S = split frame; _24P_ADVANCE for 24Pa), OFF, or guess_3_2 / guess_24pa to let After Effects pick. Needs separated fields
sourcestringInterpret the main footage or the item's proxy. Default main

replace_footage Replace Footage

Replace a footage item's source everywhere it is used, keeping layer changes (File > Replace Footage): with another file or image sequence, a colour-bar placeholder, a solid, or a composition built from a layered Photoshop or Illustrator file (With Layered Comp)

ParameterTypeDescription
item *integerFootage item id
with *stringWhat replaces it
colorstringsolid: colour, "#RRGGBB" or "rgb(r,g,b)"
durationnumberplaceholder: seconds. Default the item's duration, or 10
filestringfile, sequence: absolute path (for a sequence, its first file)
forceAlphabeticalbooleansequence: Force alphabetical order, so gaps in the numbering do not become placeholder frames. Default false
frameRatenumberplaceholder: frames per second. Default the item's rate, or 30
heightintegerplaceholder, solid: pixels. Default the item's height
namestringplaceholder, solid: name. Default the item's name
pixelAspectnumbersolid: pixel aspect ratio. Default the item's
widthintegerplaceholder, solid: pixels. Default the item's width

set_proxy Set Proxy

Give footage items or compositions a proxy (File > Set Proxy): a file or image sequence, a solid or a placeholder, or remove it (None). useProxy switches between the proxy and the original (the proxy indicator in the Project panel)

ParameterTypeDescription
items *arrayFootage or composition item ids
colorstringsolid: colour, "#RRGGBB" or "rgb(r,g,b)"
durationnumberplaceholder: seconds. Default the item's duration, or 10
filestringfile, sequence: absolute path (one item only)
forceAlphabeticalbooleansequence: Force alphabetical order. Default false
frameRatenumberplaceholder: frames per second. Default the item's rate, or 30
heightintegersolid, placeholder: pixels. Default the item's height
namestringsolid, placeholder: name. Default the item's name
pixelAspectnumbersolid: pixel aspect ratio. Default the item's
proxystringWhat becomes the proxy; none removes it. Omit to only switch useProxy
useProxybooleanUse the proxy (true) or the original (false) everywhere in the project
widthintegersolid, placeholder: pixels. Default the item's width

create_proxy Create Proxy

Queue a composition to render as its own proxy (File > Create Proxy > Still or Movie): adds a Render Queue item whose post-render action is Set Proxy. Render it with render_queue

ParameterTypeDescription
kind *stringstill: one frame; movie: the whole composition
outputFile *stringAbsolute path of the proxy file; the extension should match the output module
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
outputModulestringOutput module template. Default "Photoshop" for a still when it exists, otherwise the default template
renderSettingsstringRender settings template, e.g. "Draft Settings"
timenumberstill: the frame, in seconds. Default the current time

create_footage_item Create Footage Item

Add a footage item without adding a layer: a colour-bar placeholder for footage that is not available yet (File > Import > Placeholder) or a solid (File > Import > Solid), optionally into a folder

ParameterTypeDescription
kind *stringWhat to add
name *stringItem name
colorstringsolid: colour, "#RRGGBB" or "rgb(r,g,b)"
durationnumberplaceholder: seconds. Default 10
folderintegerPut the item in this folder (id)
frameRatenumberplaceholder: frames per second. Default 30
heightintegerPixels. Default 1080
pixelAspectnumbersolid: pixel aspect ratio. Default 1
widthintegerPixels. Default 1920

reload_footage Reload Footage

Re-read footage items from disk so changes made in other applications appear (File > Reload Footage)

ParameterTypeDescription
items *arrayFootage item ids (from list_items or get_footage_info)

open_footage Open Footage

Open a footage item in the Footage panel, reveal its file in Finder or Explorer (Reveal in Finder / Reveal in Explorer) or in Adobe Bridge (File > Reveal in Bridge), or open it in the application that made it (Edit > Edit Original). With target bridge and no item, opens Adobe Bridge (File > Browse in Bridge)

ParameterTypeDescription
target *stringWhere to open it
itemintegerFootage item id. Optional only for target bridge

detect_scene_edits Detect Scene Edits

Find the cuts in video footage layers (Layer > Scene Edit Detection) and add a marker at each, split the layer at each cut, or split and pre-compose each scene; none only returns the cut times

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
modestringmarkers: Create Layer Markers; split: Split Layer; split_precomp: Split Layer and Create Pre-comps; none: report the cuts only. Default markers

paste_svg_as_shapes Paste SVG As Shapes

Paste SVG artwork from the clipboard (for example copied from Illustrator) into a composition as shape layers (Edit > Paste). Opens the composition first

ParameterTypeDescription
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

create_comp Create Comp

Create a composition (Composition > New Composition) with a size, pixel aspect, duration, frame rate and background colour, optionally in a folder, and open it

ParameterTypeDescription
duration *numberSeconds
frameRate *numberFrames per second
height *integerPixels
name *string
width *integerPixels
adaptiveSampleLimitintegerMotion blur Adaptive Sample Limit
backgroundColorstring"#RRGGBB" or "rgb(r,g,b)" (0-255)
dropFramebooleanDrop Frame timecode (29.97 and 59.94 fps); false is Non-Drop Frame
folderintegerFolder id
frameBlendingbooleanTimeline switch: Enable Frame Blending for the composition
hideShyLayersbooleanTimeline switch: Hide Shy Layers
motionBlurbooleanEnable motion blur for the composition
pixelAspectnumberDefault 1
preserveNestedFrameRatebooleanPreserve frame rate when nested or in render queue
preserveNestedResolutionbooleanPreserve resolution when nested
resolutionstringResolution: full, half, third or quarter
resolutionFactorarrayCustom resolution: render every [x, y]th pixel
samplesPerFrameintegerMotion blur Samples Per Frame
shutterAnglenumber
shutterPhasenumberMotion blur Shutter Phase, degrees
startFrameintegerStart Frame: the number shown for the first frame, when the project counts frames
startTimecodenumberStart Timecode: the time shown for the first frame, in seconds
workAreaDurationnumberSeconds
workAreaStartnumberSeconds

set_comp_settings Set Comp Settings

Change a composition's settings (Composition > Composition Settings): name, size, pixel aspect, duration, frame rate, resolution, start timecode or frame, drop-frame timecode, background, motion blur (shutter angle and phase, samples), nesting options and work area; and its Timeline switches Enable Frame Blending and Hide Shy Layers

ParameterTypeDescription
adaptiveSampleLimitintegerMotion blur Adaptive Sample Limit
backgroundColorstring"#RRGGBB" or "rgb(r,g,b)" (0-255)
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
dropFramebooleanDrop Frame timecode (29.97 and 59.94 fps); false is Non-Drop Frame
durationnumberSeconds
frameBlendingbooleanTimeline switch: Enable Frame Blending for the composition
frameRatenumberFrames per second
heightintegerPixels
hideShyLayersbooleanTimeline switch: Hide Shy Layers
motionBlurbooleanEnable motion blur for the composition
namestring
pixelAspectnumberDefault 1
preserveNestedFrameRatebooleanPreserve frame rate when nested or in render queue
preserveNestedResolutionbooleanPreserve resolution when nested
resolutionstringResolution: full, half, third or quarter
resolutionFactorarrayCustom resolution: render every [x, y]th pixel
samplesPerFrameintegerMotion blur Samples Per Frame
shutterAnglenumber
shutterPhasenumberMotion blur Shutter Phase, degrees
startFrameintegerStart Frame: the number shown for the first frame, when the project counts frames
startTimecodenumberStart Timecode: the time shown for the first frame, in seconds
widthintegerPixels
workAreaDurationnumberSeconds
workAreaStartnumberSeconds

duplicate_comp Duplicate Comp

Duplicate a composition (Edit > Duplicate), optionally renaming the copy

ParameterTypeDescription
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
namestring

precompose Precompose

Pre-compose layers into a new composition (Layer > Pre-compose), moving all attributes or leaving them in the original

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
name *string
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
moveAllAttributesbooleanMove all attributes into the new composition. Default true

open_comp Open Comp

Open a composition in the Composition panel and make it the active one

ParameterTypeDescription
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

add_comp_marker Add Comp Marker

Add a composition marker at a time, with a comment, duration, chapter and web link

ParameterTypeDescription
time *numberSeconds
chapterstring
commentstring
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
durationnumberSeconds
urlstring

save_frame Save Frame

Save one frame of a composition as a PNG file (Composition > Save Frame As)

ParameterTypeDescription
outputFile *stringAbsolute .png path
time *numberSeconds
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

create_comp_from_items Create Comp From Items

Make compositions from footage or compositions in the Project panel (File > New Comp from Selection): one per item, or one holding them all, sized and timed from an item, optionally with the layers in sequence and added to the Render Queue

ParameterTypeDescription
items *arrayProject item ids (from list_items)
addToRenderQueuebooleanAdd each new composition to the Render Queue
modestringeach: one composition per item (the default); single: one composition with every item as a layer, the first on top
namestringsingle: the composition name; default the first item's name
overlapnumbersequenceLayers: seconds each layer overlaps the one before
sequenceLayersbooleansingle: place the layers one after another in time
stillDurationnumberSeconds for still images. Default 5
useDimensionsFromintegersingle: the item id whose size and frame rate the composition takes; default the first item

run_comp_command Run Comp Command

Composition and work-area commands: Trim Comp to Work Area, Crop Comp to Region of Interest (needs a region drawn in the Composition panel), Set Poster Time, Lift Work Area and Extract Work Area (on the given layers, or all), set the work area to the layers' span, Composition Flowchart, and Reveal Composition in Project. The menu commands make the composition active

ParameterTypeDescription
action *stringThe command
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
layersobjectlift_work_area, extract_work_area and work_area_to_layers: the layers (default all; for work_area_to_layers the selection, else the whole composition). Which layers. Give indexes (1-based, from list_l…
timenumberset_poster_time: seconds; default the current time

edit_markers Edit Markers

Composition and layer markers (Layer > Add Marker, the Marker dialog): list, add (or set a numbered composition marker 0-9), edit comment, duration, chapter, web link, cue point, label and protected region, remove one or all, move the current time to a marker, or Update Markers From Source. Give layers for layer markers; omit them for composition markers

ParameterTypeDescription
action *stringlist, add, update, remove, remove_all, go_to, update_from_source (layers whose source has markers)
atadd: where to put the marker; update, remove, go_to: the marker at this time. Seconds, or "current_time" (the default), "comp_start" or "comp_end"
chapterstring
commentstring
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
cuePointNamestring
durationnumberSeconds
eventCuePointbooleanCue point type: true event, false navigation
frameTargetstringWeb link frame target
labelintegerLabel colour (0 none)
layersobjectLayer markers on these layers; omit for composition markers. Which layers. Give indexes (1-based, from list_layers), names, or selected: true
markerintegerupdate, remove, go_to: the marker's number in time order (1 = first), instead of at
numberintegerComposition markers: the numbered marker 0-9 (add moves it if it exists; update, remove, go_to find it)
parametersobjectCue point parameters, name to value
protectedRegionbooleanProtected region (composition markers with a duration)
urlstringWeb link

list_layers List Layers

List a composition's layers, top to bottom, with index, id, type, switches, timing, parent, blending mode and track matte. Indexes are what other tools take

ParameterTypeDescription
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

add_layer Add Layer

Add a layer (Layer > New): solid, null, adjustment, text, shape, camera or light, or a project item (footage or composition) as a layer, at the top of the composition

ParameterTypeDescription
type *string
colorstringSolid and adjustment colour. Default white
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
durationnumberSeconds; default the composition duration
heightinteger
itemintegertype item: the project item id to add
lightTypestringtype light. Default point
namestring
textstringtype text: the text
widthintegerSolid size; default the composition size

set_layer_properties Set Layer Properties

Set layer switches and timing: name, comment, enabled (video), audio, solo, shy, lock, 3D, motion blur, adjustment layer, effects (Effect switch), Collapse Transformations / Continuously Rasterize, Preserve Underlying Transparency, quality and sampling (Bilinear, Bicubic), blending mode (or step to the next or previous one), Auto-Orient, label, in and out points, start time, stretch

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
adjustmentLayerboolean
audioEnabledboolean
autoOrientstringLayer > Transform > Auto-Orient: off, along_path, towards_camera (3D layers; cameras and lights toward their point of interest), characters_toward_camera (3D text)
blendingModestring
collapseTransformationbooleanCollapse Transformations (pre-compositions) or Continuously Rasterize (vector layers)
commentstringText for the Comments column
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
cycleBlendingModestringStep to the next or previous blending mode in the menu (Shift+= and Shift+-)
effectsActivebooleanEffect switch: render the layer's effects
enabledboolean
guideLayerboolean
inPointnumberSeconds
labelinteger
lockedboolean
motionBlurboolean
namestring
outPointnumberSeconds
preserveTransparencybooleanPreserve Underlying Transparency
qualitystring
samplingstringLayer > Quality sampling at Best quality
shyboolean
soloboolean
startTimenumberSeconds
stretchnumberTime stretch percent; negative reverses
threeDboolean

set_transform Set Transform

Set layer transform values without keyframes: anchor point, position, scale (percent), rotation (degrees), opacity (percent), and 3D orientation and rotations. Animated properties are set at the current time

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
anchorPointarray
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
opacitynumber
orientationarray3D layers
positionarrayPixels from the top-left
rotationnumber
scalearrayPercent per axis
xRotationnumber
yRotationnumber

parent_layers Parent Layers

Parent layers to another layer (or remove the parent), keeping their current position on screen, or with jump (Alt/Option while parenting): the child takes the parent's transform and jumps to it

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
jumpbooleanParent with jump: keep the child's transform values relative to the new parent instead of its place on screen. Default false
parentintegerParent layer index; omit to remove the parent

set_track_matte Set Track Matte

Use another layer as a layer's track matte (alpha, alpha inverted, luma, luma inverted), or remove the matte

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
matteLayerintegerMatte layer index
typestringDefault alpha; none removes the matte

arrange_layers Arrange Layers

Change the stacking order: move layers to the top, to the bottom, or before or after another layer

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
order *string
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
relativeTointegerLayer index, for before and after

duplicate_layers Duplicate Layers

Duplicate layers (Edit > Duplicate), or copy them into another composition

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
toCompintegerCopy into this composition (id) instead

delete_layers Delete Layers

Delete layers from a composition

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

switch_all_layers Switch All Layers

Apply a switch to every layer in a composition (Layer > Switches): Unlock All Layers, Show All Video, or Hide Other Video (turn video off for every layer except the given ones)

ParameterTypeDescription
action *stringunlock_all, show_all_video, or hide_other_video
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
layersobjecthide_other_video: the layers to keep visible. Which layers. Give indexes (1-based, from list_layers), names, or selected: true

open_layer Open Layer

Open a layer (Layer > Open Layer) in the Layer panel, open its source (Layer > Open Layer Source: footage in the Footage panel, a pre-composition in the Composition panel), or select its source item in the Project panel (Reveal Layer Source In Project)

ParameterTypeDescription
layers *objectOne layer. Which layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
targetstringlayer (Layer panel, the default), source, or reveal_source

select_layers Select Layers

Change which layers are selected in the Timeline: select given layers (by number, as typing it on the keypad), add or remove them, invert the selection, select children of parents, move the selection to the next or previous layer or extend it, select all or none

ParameterTypeDescription
action *stringset, add, remove (toggle with layers); children (of layers, or of the selection); invert; next, previous, extend_next, extend_previous (from the selection); all; none
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
layersobjectFor set, add, remove and children. Which layers. Give indexes (1-based, from list_layers), names, or selected: true

trim_layers Trim Layers

Trim or extend layers' In or Out point to a time (Alt+[ and Alt+]: trim to the current time), or trim a set of layers together so the earliest In point or latest Out point lands there, keeping their offsets. Trimming never changes the source

ParameterTypeDescription
edge *stringWhich end to trim
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
asSetbooleanTrim the layers as a set: the earliest In (or latest Out) point goes to the time and the others keep their offsets. Default false
atSeconds, or "current_time" (the default), "comp_start" or "comp_end"
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

move_layers Move Layers

Move layers in time without changing their length: put the In or Out point at a time ([ and ]: the current time; or the composition start or end), alone or as a set keeping offsets; nudge by frames (Alt+Page Up/Down) or seconds; stagger them in order (Quick Offset); or slip-edit the source under fixed In and Out points

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
mode *stringin_point_to, out_point_to (use at), offset (by frames or seconds), stagger (each layer one step later than the one before, in the order given), slip (move the source by frames or seconds inside the In…
asSetbooleanin_point_to and out_point_to: move the layers together so the earliest In point (or latest Out point) lands on the time. Default false
atSeconds, or "current_time" (the default), "comp_start" or "comp_end"
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
framesintegeroffset, stagger, slip: frames (negative is earlier)
secondsnumberoffset, stagger, slip: seconds instead of frames

split_layers Split Layers

Split layers at a time (Edit > Split Layer): each becomes two layers, the original ending at the time and a duplicate above it starting there, both keeping all keyframes

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
atSeconds, or "current_time" (the default), "comp_start" or "comp_end"
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

reframe_layers Reframe Layers

Fit, centre or flip layers (Layer > Transform): Fit to Comp, Fit to Comp Width, Fit to Comp Height, Center In View, Center Anchor Point in Layer Content, Flip Horizontal, Flip Vertical. The fit and centre commands select the layers and make their composition active

ParameterTypeDescription
action *stringWhat to do
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

replace_layer_source Replace Layer Source

Replace layers' source with another footage item or composition (Alt/Option-drag in the Project panel), keeping their properties, effects and keyframes

ParameterTypeDescription
item *integerThe new source: a project item id (from list_items)
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
fixExpressionsbooleanUpdate expressions that refer to the old source name. Default true

set_solid_settings Set Solid Settings

Change a solid layer's solid (Layer > Solid Settings): name, colour and size, either for every layer that uses the solid (Affect All Layers That Use This Solid) or for these layers only, through a new solid

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
affectAllLayersbooleanChange the solid itself, so every layer using it changes (default true); false gives these layers a new solid
colorstring"#RRGGBB" or "rgb(r,g,b)" (0-255)
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
heightintegerPixels
namestringSolid name
widthintegerPixels

set_layer_styles Set Layer Styles

Add Photoshop-style layer styles (Layer > Layer Styles: Drop Shadow, Inner Shadow, Outer Glow, Inner Glow, Bevel and Emboss, Satin, Color Overlay, Gradient Overlay, Stroke), Remove All, Convert to Editable Styles, and set Blending Options (Global Light, Fill Opacity, channels, Blend Interior Styles as Group, Use Blend Ranges from Source). The style commands select the layers and make their composition active; set each style's own values with set_property

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
addarrayStyles to add
blendingobjectBlending Options (present once a layer has a style)
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
convertToEditablebooleanTurn styles merged from a Photoshop layer into editable styles (Convert to Editable Styles)
removeAllbooleanFirst remove every layer style (Remove All)

choose_layer_tool Choose Layer Tool

Choose a layer tool in the Tools panel: Rotation, Pan Behind (Anchor Point) or Selection, for the user's next drag in the Composition panel. To rotate or move an anchor point from here, use set_transform

ParameterTypeDescription
tool *stringrotation, pan_behind or selection

remap_layer_time Remap Layer Time

Time remapping (Layer > Time): enable or disable it, Freeze Frame at a time, Freeze On Last Frame (extend the layer to the composition end holding its last frame), hold one frame between two times and then resume, or set Time Remap keyframes saying which source time shows at each composition time (as the Layer panel's remap marker does)

ParameterTypeDescription
action *stringenable, disable, freeze_frame (at), freeze_on_last_frame, hold (from, to), set_keyframes (keyframes)
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
atfreeze_frame: the frame to hold. Seconds, or "current_time" (the default), "comp_start" or "comp_end"
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
fromnumberhold: composition time (seconds) whose frame is held
keyframesarrayset_keyframes: Time Remap keyframes
tonumberhold: composition time (seconds) where playback resumes

set_frame_blending Set Frame Blending

Frame blending (Layer > Frame Blending): set layers to Off, Frame Mix or Pixel Motion (the layer's Frame Blending switch), and turn the composition's Enable Frame Blending switch on or off, without which layer frame blending is not previewed

ParameterTypeDescription
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
compSwitchbooleanThe composition's Enable Frame Blending switch
layersobjectLayers based on motion footage or compositions. Which layers. Give indexes (1-based, from list_layers), names, or selected: true
modestringFor the layers: off, frame_mix or pixel_motion

stretch_layers Stretch Layers

Time-stretch layers (Layer > Time > Time Stretch, the Stretch column): to a percentage or a new length, holding the In point, the current time or the Out point in place; or stretch so the In or Out point lands on a time (Ctrl/Cmd+Shift+, and +.). Optionally keep keyframes at their original times, or conform the source footage's frame rate instead

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
atSeconds, or "current_time" (the default), "comp_start" or "comp_end"
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
conformFrameRatenumberInstead of stretching: conform the layers' source footage to this frame rate (Interpret Footage; 0 uses the file's rate). Affects every layer using that footage
durationnumberNew length between In and Out points, seconds
edgestringStretch so this end lands on at, keeping the other end in place
holdInPlacestringpercent and duration: which point stays put. Default in_point
keepKeyframeTimesbooleanLeave keyframes at their composition times instead of stretching them with the layer
percentnumberStretch factor percent (100 is normal speed, 200 half speed, negative plays backwards)

align_video_to_data Align Video To Data

Align Video to Data (Layer > Time): offset video layers in time by the frame counts their names have in a data layer's mgJSON videoSyncTimeList. Selects the data layer and the video layers and makes the composition active

ParameterTypeDescription
dataLayer *integerIndex of the mgJSON data layer
layers *objectThe video layers to align. Which layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

get_property Get Property

Read a layer property: its value, keyframes (time, value, interpolation) and expression. Properties are named by a shortcut or a path of match names or names; this includes the Data group of a data-driven layer

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
property *A property: a shortcut (anchor_point, position, scale, rotation, opacity, x_rotation, y_rotation, orientation, source_text, time_remap, audio_levels) or a path of match names or display names from the…
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
timenumberAlso read the value at this time (seconds)

set_property Set Property

Set a property's value, as in the Timeline or Properties panel (layer Transform, shape, camera and light options, effect properties): with no time and no keyframes the static value, otherwise a keyframe at the time (or the current time). Text layers' Source Text takes a string

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
property *A property: a shortcut (anchor_point, position, scale, rotation, opacity, x_rotation, y_rotation, orientation, source_text, time_remap, audio_levels) or a path of match names or display names from the…
value *A number, an array of numbers, text, or true/false
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
timenumberSeconds: set a keyframe at this time

set_keyframes Set Keyframes

Add keyframes to a property at several times, with their values, and optionally the interpolation (linear, bezier, hold) and easing (Easy Ease influence and speed) for each

ParameterTypeDescription
keyframes *array
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
property *A property: a shortcut (anchor_point, position, scale, rotation, opacity, x_rotation, y_rotation, orientation, source_text, time_remap, audio_levels) or a path of match names or display names from the…
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

remove_keyframes Remove Keyframes

Remove keyframes from a property: all of them, or those between two times

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
property *A property: a shortcut (anchor_point, position, scale, rotation, opacity, x_rotation, y_rotation, orientation, source_text, time_remap, audio_levels) or a path of match names or display names from the…
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
fromnumberSeconds
tonumberSeconds

set_expression Set Expression

Write an expression on a property, as typed in the expression editor (or clear it with an empty string), and report any expression error After Effects finds. The expression can use the whole expression language: global objects (thisComp, thisLayer, time, value), time conversion, vector math, random numbers, interpolation (linear, ease), colour conversion and other math; comp, footage, layer (sub-objects, general, properties, 3D, space transforms), camera, light, effect, mask, property, project, key, marker and path attributes and methods; dropdown menu attributes; text style objects for per-ch…

ParameterTypeDescription
expression *stringExpression source; "" removes it
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
property *A property: a shortcut (anchor_point, position, scale, rotation, opacity, x_rotation, y_rotation, orientation, source_text, time_remap, audio_levels) or a path of match names or display names from the…
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
enabledbooleanDefault true

convert_expression_to_keyframes Convert Expression To Keyframes

Bake a property's expression into a keyframe on every frame and switch the expression off, keeping its text (Animation > Keyframe Assistant > Convert Expression to Keyframes). Keyframes already in the span are replaced

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
property *A property: a shortcut (anchor_point, position, scale, rotation, opacity, x_rotation, y_rotation, orientation, source_text, time_remap, audio_levels) or a path of match names or display names from the…
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
fromnumberStart (seconds). Default the layer's in point
tonumberEnd (seconds). Default the layer's out point

set_expression_engine Set Expression Engine

Choose the engine that evaluates the project's expressions (File > Project Settings > Expressions): javascript (the default, faster, modern syntax) or extendscript (Legacy ExtendScript, for old expressions)

ParameterTypeDescription
engine *stringjavascript or extendscript

edit_keyframes Edit Keyframes

Change existing keyframes of a property (Animation > Keyframe Interpolation, Keyframe Velocity, Keyframe Assistant, the Graph Editor buttons and the keyframe context menu): interpolation presets such as Easy Ease, Easy Ease In/Out, Auto Bezier, Continuous Bezier, Linear and Toggle Hold Keyframe; incoming and outgoing interpolation and ease (speed and influence of the Bezier handles); Rove Across Time; motion path tangents; keyframe colour label; the value of every chosen keyframe (Edit Value); and Time-Reverse Keyframes. keys.times adds a keyframe where none exists, holding the value there, as…

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
property *A property: a shortcut (anchor_point, position, scale, rotation, opacity, x_rotation, y_rotation, orientation, source_text, time_remap, audio_levels) or a path of match names or display names from the…
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
easeInobjectIncoming temporal ease (Keyframe Velocity dialog, Graph Editor handle): speed and influence for every dimension
easeOutobjectOutgoing temporal ease: speed and influence for every dimension
inInterpolationstringIncoming interpolation
keysobjectWhich keyframes of the property: those matching any of indexes, the from/to time range, times or selected. Omit for all of them
labelintegerKeyframe colour label, 0 (none) to 16
outInterpolationstringOutgoing interpolation
presetstringlinear, bezier, auto_bezier, continuous_bezier, hold (both sides), toggle_hold (outgoing Hold, or back to Auto Bezier), easy_ease, easy_ease_in, easy_ease_out
rovingbooleanRove Across Time (spatial properties; the first and last keyframes never rove)
spatialAutoBezierbooleanAuto Bezier on the motion path (spatial properties only)
spatialContinuousbooleanContinuous Bezier on the motion path (spatial properties only)
spatialTangentsobjectMotion path direction handles, relative to the keyframe, in pixels (spatial properties only)
temporalAutoBezierbooleanAuto Bezier in time
temporalContinuousbooleanContinuous Bezier in time
timeReversebooleanTime-Reverse Keyframes: mirror the chosen keyframes in time within their span (done before the other changes)
valueNew value for every chosen keyframe: a number, an array of numbers, text or true/false

select_keyframes Select Keyframes

Select or deselect keyframes of a property in the Timeline panel, or deselect every keyframe, property and property group (Edit > Deselect All in the Timeline). Selected keyframes are what run_animation_command's keyframe commands act on

ParameterTypeDescription
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
deselectAllbooleanFirst deselect every keyframe, property and property group on the layers
keysobjectWhich keyframes of the property: those matching any of indexes, the from/to time range, times or selected. Omit for all of them
layersobjectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true. With deselectAll and no layers, every layer
modestringreplace (default): only these keyframes of the property are selected; add; remove
propertyA property: a shortcut (anchor_point, position, scale, rotation, opacity, x_rotation, y_rotation, orientation, source_text, time_remap, audio_levels) or a path of match names or display names from the…

go_to_keyframe Go To Keyframe

Move the current time to the previous, next, first or last keyframe (the keyframe navigator arrows, J and K): of one property, or of every animated property of the layers (the selected layers by default)

ParameterTypeDescription
direction *stringWhere to go
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
layersobjectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true. Default the selected layers
propertyA property: a shortcut (anchor_point, position, scale, rotation, opacity, x_rotation, y_rotation, orientation, source_text, time_remap, audio_levels) or a path of match names or display names from the…

copy_animation Copy Animation

Copy from one layer's property to properties on other layers: its keyframes (Edit > Copy and Paste, or Paste Reverse Keyframes with reverse), its expression only (Edit > Copy Expression Only), or a link: an expression on each target that follows the source, as Edit > Copy With Property Links then Paste, or dragging the expression pick whip, would write

ParameterTypeDescription
from *objectThe source
to *objectThe targets
what *stringkeyframes, expression (the expression only), or link (a property link expression)
keysobjectWith what: keyframes, which source keyframes. Which keyframes of the property: those matching any of indexes, the from/to time range, times or selected. Omit for all of them
reversebooleanWith what: keyframes, paste them in reverse time order (Paste Reverse Keyframes)
timenumberWith what: keyframes, where the first pasted keyframe lands (seconds). Default the source times

separate_dimensions Separate Dimensions

Separate a Position property into X, Y (and Z) Position so each can be keyframed alone, or join them again (Animation > Separate Dimensions)

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
propertyA property: a shortcut (anchor_point, position, scale, rotation, opacity, x_rotation, y_rotation, orientation, source_text, time_remap, audio_levels) or a path of match names or display names from the…
separatebooleantrue separates, false joins. Default true

sequence_layers Sequence Layers

Arrange layers one after another in time, in the order given, optionally overlapping with an opacity dissolve (Animation > Keyframe Assistant > Sequence Layers)

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true. The first plays first
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
overlapnumberSeconds each layer overlaps the one before. Default 0
startnumberWhen the first layer starts (seconds). Default its current in point
transitionstringWith an overlap: off (default), dissolve_front (the upper layer fades), or cross_dissolve (both fade)

run_animation_command Run Animation Command

Run an Animation or Timeline command that acts on the selection: Enable Auto-keyframe (toggle), Select Equal / Previous / Following Keyframes, Select Keyframe Label Group (and its On Selected Layers, On All Layers and Visible Keyframes variants), Keyframe Assistant > Exponential Scale, RPF Camera Import and Create Keyframes from Data, Reveal in Timeline, Reveal Properties with Animation, Reveal All Modified Properties and Reveal Expression Errors. Select keyframes first with select_keyframes; layers (and property) given here are selected before the command runs

ParameterTypeDescription
command *stringThe command
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition. It is opened in the Timeline first
layersobjectSelect only these layers first (indexes, names, or selected: true to keep the selection)
propertyWith layers, also select this property (Reveal in Timeline). A property: a shortcut (anchor_point, position, scale, rotation, opacity, x_rotation, y_rotation, orientation, source_text, time_remap, aud…

manage_puppet Manage Puppet

Puppet tools: add an empty Puppet effect to layers, choose a Puppet pin tool in the Tools panel (Position, Starch, Overlap, Advanced or Bend Pin) so pins can be placed in the Composition panel, duplicate a Puppet mesh, or list the meshes and pins with their paths for set_keyframes

ParameterTypeDescription
action *stringWhat to do
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
layersobjectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true. For add_effect, duplicate_mesh and list
meshintegerFor duplicate_mesh: the mesh number, 1 = first. Default 1
toolstringFor choose_tool: position, starch, overlap, advanced or bend

list_effects List Effects

List the effects installed in After Effects with their display name, match name and category, filtered by a search string. Match names are what apply_effect takes most reliably

ParameterTypeDescription
limitinteger
querystring

apply_effect Apply Effect

Apply an effect to layers (Effect menu) by match name (e.g. "ADBE Gaussian Blur 2") or display name, optionally setting its properties by name, e.g. { "Blurriness": 20 }

ParameterTypeDescription
effect *stringMatch name or display name
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
namestringRename the applied effect
propertiesobjectProperty display names to values (numbers, arrays, booleans)

list_layer_effects List Layer Effects

List the effects on layers, in order, with each effect's properties and values

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

remove_effects Remove Effects

Remove effects from layers by name or index, or all of them, or turn them off and on

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
effectsarrayEffect names; omit for all
enabledbooleanTurn the effects on or off instead of removing them

apply_preset Apply Preset

Apply an animation preset (.ffx) to layers (Animation > Apply Animation Preset)

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
presetFile *stringAbsolute .ffx path
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

find_effects Find Effects

Browse the effects on the Effect menu by category (Blur & Sharpen, Distort, Generate, Expression Controls, ...) or by name, from the built-in effect catalog: display name, match name, category, the controls After Effects documents for each, and whether this After Effects has it installed (Effect menu; Effects & Presets panel)

ParameterTypeDescription
categorystringOnly effects in this Effect menu category
controlsbooleanInclude each effect's documented controls
limitintegerMost effects to return
querystringOnly effects whose display name or match name contains this text

set_effect_controls Set Effect Controls

Apply an effect from the Effect menu to layers by display name or match name and set any of its controls by name in the same call, or set the controls of an effect already on the layers (Effect Controls panel). Values: numbers, true/false for checkboxes, [x, y] pixels for points, "#RRGGBB" for colours, a menu choice's text or number, a layer's name or index for layer controls, a mask's name for mask controls, an object for the controls inside a group, and a list of strings to replace a Dropdown Menu Control's items. With time, each value is a keyframe

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
controlsobjectControl names (as in the Effect Controls panel, or match names) to values, e.g. { "Blurriness": 20, "Repeat Edge Pixels": true }
effectstringThe effect to apply: its display name (e.g. "Fractal Noise") or match name (e.g. "ADBE Fractal Noise"); find_effects lists them
existingAn effect already on the layer: its name in the Effect Controls panel (e.g. "Gaussian Blur 2"), its match name, or its position (1 = top)
namestringRename the effect
timenumberSeconds: set each control as a keyframe at this time

get_effect_controls Get Effect Controls

Read the controls of effects on layers (Effect Controls panel): each control's name, match name, type (number, menu, point, point3d, color, layer, mask, topic, group or custom; checkboxes are numbers 0 or 1), current value, menu choices, range, units, keyframe count and expression

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
effectAn effect already on the layer: its name in the Effect Controls panel (e.g. "Gaussian Blur 2"), its match name, or its position (1 = top). Omit for every effect on the layers
timenumberRead values at this time (seconds) instead of the current time

organize_effects Organize Effects

Duplicate effects on their layers (Edit > Duplicate), move an effect up or down the layer's effect stack (drag in the Effect Controls panel), or copy effects with their keyframes and expressions to other layers in the composition (Edit > Copy, Edit > Paste; uses the clipboard and opens the composition in the Composition panel)

ParameterTypeDescription
action *stringWhat to do
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true. For copy_to_layers, one source layer
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
effectsarrayApplied effects by name, match name or position (1 = top); omit for all (one effect for move)
positionintegermove: the new position in the stack, 1 = top
toobjectcopy_to_layers: the layers to paste the effects onto

add_text_layer Add Text Layer

Add a text layer (Layer > New > Text, or the Horizontal and Vertical Type tools): point text, or paragraph text in a box, horizontal or vertical, optionally named and placed

ParameterTypeDescription
text *stringThe text; line breaks start new lines
boxSizearrayParagraph text: [width, height] of the box in pixels. Default half the composition size
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
kindstringpoint text (default) or paragraph text in a box
namestringLayer name
orientationstringHorizontal Type tool (default) or Vertical Type tool
positionarray[x, y] in pixels from the composition's top-left

set_text Set Text

Set a text layer's Source Text and formatting (Character and Paragraph panels) for the whole layer or a range of characters or paragraphs: font (by PostScript name, or family and style), size, fill and stroke, tracking, kerning, leading, scale, baseline shift and super/subscript, caps, ligatures, tsume, digits, indents, spacing, justification, composer, direction and orientation, step changes, and Reset Character/Paragraph. Applies at the current time if Source Text is animated

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
adjustobjectStep changes added to the current values, as the Character panel shortcuts do (negative to decrease)
allCapsbooleanAll Caps
applyFillbooleanfalse: No Fill Color
applyStrokebooleanfalse: No Stroke Color
autoKerningstringMetrics or Optical kerning, or none
baselineDirectionstringVertical text: standard, rotated, or tate_chuu_yoko (Tate-Chuu-Yoko)
baselineOptionstringSuperscript, Subscript or normal
baselineShiftnumberPixels
boxSizearrayParagraph text: [width, height] of the box in pixels
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
composerstringAdobe Every-line or Single-line Composer
digitsstringDigit set, e.g. hindi for Hindi Digits
directionstringParagraph text direction
endIndentnumberIndent Right Margin, pixels
fauxBoldbooleanFaux Bold
fauxItalicbooleanFaux Italic
fillColorstringFill colour; turns fill on
firstLineIndentnumberIndent First Line, pixels
fontstringPostScript font name (find_fonts lists them)
fontFamilystringFont family, with fontStyle, chosen through the font list (app.fonts)
fontSizenumberPixels
fontStylestringFont style with fontFamily, e.g. "Bold"
hangingRomanbooleanRoman Hanging Punctuation
horizontalScalenumberPercent; 100 resets
justificationstringParagraph alignment
kerningnumberManual kerning, thousandths of an em
leadingnumberPixels; turns auto leading off
leadingTypestringTop-To-Top or Bottom-To-Bottom Leading
ligaturesbooleanLigatures
lineJoinstringStroke line join
lineOrientationstringHorizontal or vertical text
noBreakbooleanNo Break
rangeobjectFormat only part of the text. Character options on a paragraph range apply to its characters; paragraph options apply to whole paragraphs. Omit for the whole layer
resetCharacterbooleanReset Character first (Character panel menu)
resetParagraphbooleanReset Paragraph first (Paragraph panel menu)
smallCapsbooleanSmall Caps
spaceAfternumberSpace After Paragraph, pixels
spaceBeforenumberSpace Before Paragraph, pixels
startIndentnumberIndent Left Margin, pixels
strokeColorstringStroke colour; turns stroke on
strokeOverFillbooleantrue: Stroke Over Fill; false: Fill Over Stroke
strokeWidthnumberPixels
textstringNew text (with range: replaces the range); line breaks start new lines
trackingnumberThousandths of an em; 0 resets tracking
tsumenumberPercent
universalTextEnginebooleantrue: switch the layer to the Universal Text Engine (cannot be switched back by script)
verticalScalenumberPercent; 100 resets

get_text Get Text

Read text layers' Source Text: text, font (with its PostScript name, family, style and variable axes), character and paragraph formatting, point or paragraph text and box size, and where each paragraph and composed line starts and ends

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

find_fonts Find Fonts

Search the fonts After Effects can use (Character panel font menu, app.fonts) by name, or list only variable fonts or missing and substituted fonts. Returns PostScript names for set_text, families and styles, variable font axes, and the favourite and recent font lists

ParameterTypeDescription
limitintegerMost fonts to return. Default 200
missingbooleanList the project's missing or substituted fonts instead
querystringText to find in the family, style, full or PostScript name; omit for all
variableOnlybooleanOnly variable fonts (with design axes)

set_font_options Set Font Options

Set the favourite font families shown in the Character panel font menu, or have After Effects rescan font folders outside the system ones (such as the Adobe local Fonts folder) for added or removed fonts

ParameterTypeDescription
favoritesarrayFont family names: replaces the favourites list
rescanFontFoldersbooleanRescan non-system font folders

set_text_options Set Text Options

Set a text layer's Path Options (text on a mask path: Reverse Path, Perpendicular To Path, Force Alignment, First and Last Margin), More Options (Anchor Point Grouping, Grouping Alignment, Fill & Stroke, Inter-Character Blending, Variable Font Spacing), Enable Per-character 3D (Animation menu) and Orient Each Character Independently (Layer > Transform > Auto-Orient)

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
anchorPointGroupingstringMore Options > Anchor Point Grouping
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
fillAndStrokestringMore Options > Fill & Stroke (needs per-character 3D off)
firstMarginnumberPath Options > First Margin, pixels
forceAlignmentbooleanPath Options > Force Alignment
groupingAlignmentarrayMore Options > Grouping Alignment, [x, y] percent
interCharacterBlendingintegerMore Options > Inter-Character Blending: 1-based position in its blending mode menu (1 = Normal)
lastMarginnumberPath Options > Last Margin, pixels
orientCharactersbooleantrue: Orient Each Character Independently toward the camera (turns on per-character 3D); false: turn it off
pathintegerPath Options > Path: the index of a mask on the same layer; 0 for none
perCharacter3DbooleanEnable Per-character 3D
perpendicularToPathbooleanPath Options > Perpendicular To Path
reversePathbooleanPath Options > Reverse Path
variableFontSpacingintegerMore Options > Variable Font Spacing: 1-based position in its menu; present only when a variable font axis is animated

set_text_animator Set Text Animator

Add a text animator (Animation > Animate Text) with its properties (position, scale, rotation, opacity, fill colour, tracking, blur, character value, variable font axes, All Transform Properties...) and selectors (Animation > Add Text Selector: Range, Wiggly, Expression) with their settings; or add properties and selectors to an existing animator, or change an existing selector. A new animator without selectors gets a Range selector, as in the Animate menu

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
animatorAn existing animator to change: its 1-based index or name (list_text_animators). Omit to add a new animator
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
fontAxesarrayVariable font axes to animate (Animate Text > Variable Font Axes)
namestringName for the animator
propertiesobjectAnimator properties to add (or set, when already there), each to a value or true for its default. Numbers or [x, y, z] arrays; *_color take "#RRGGBB". Keys: anchor_point, position, scale, skew, skew_a…
selectorsarraySelectors to add, or with selector: n, to change

list_text_animators List Text Animators

List text layers' animators (Text > Animator groups) with their properties and values and their selectors

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

remove_text_animators Remove Text Animators

Remove text animators from text layers: chosen ones by index or name, or all of them (Animation > Remove All Text Animators)

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
allbooleanRemove every animator
animatorsarrayAnimators to remove: 1-based indexes or names
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

convert_text_layers Convert Text Layers

Convert layers with a Layer menu command: Create Shapes from Text (new shape layers with the outlines), Create Masks from Text (a solid with a mask per character), or Convert to Editable Text (Photoshop text layers to After Effects text). Selects the layers and runs the command in their composition

ParameterTypeDescription
action *stringshapes: Create Shapes from Text; masks: Create Masks from Text; editable: Convert to Editable Text
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

show_text_panels Show Text Panels

Show the Character or Paragraph panel (Window > Character, Window > Paragraph), or toggle both text panels

ParameterTypeDescription
panel *stringcharacter, paragraph, or toggle (show or hide both)

add_mask Add Mask

Add a mask to layers: a rectangle or ellipse from bounds, or a path from points, all in the layer's own pixel coordinates; with its mode, feather, opacity, expansion and inversion

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
boundsobjectRectangle or ellipse bounds
closedbooleanPath: closed. Default true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
expansionnumberPixels
feathernumberPixels
invertedboolean
modestringDefault add
namestring
opacitynumber
pointsarrayPath points [[x, y], ...]
shapestringDefault rectangle

list_masks List Masks

List the masks on layers (Timeline panel, Masks group): index, name, mode, inversion, lock, colour, RotoBezier, motion blur, feather falloff, feather, opacity, expansion, selection and vertex count; optionally each path's vertices, tangents and feather points

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
masksobjectWhich masks on each layer: indexes (1-based, as in the Timeline) or names. Omit for every mask
pathsbooleanInclude each mask path: vertices, tangents, closed and variable-width feather points. Default false

set_masks Set Masks

Change masks on layers (Layer > Mask): mode, inversion, lock (or lock every other mask: Lock Other Masks; unlock them all: Unlock All Masks), outline colour, RotoBezier, Motion Blur (same as layer, on, off), Feather Falloff (smooth, linear), feather, opacity, expansion, name and selection

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
colorstringMask outline colour in the viewers and Timeline, "#RRGGBB" or "rgb(r,g,b)"
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
expansionnumberMask expansion in pixels
feathernumberFeather in pixels, both directions
featherFalloffstringFeather falloff curve (Layer > Mask > Feather Falloff)
invertedbooleanInvert the mask
lockOthersbooleanLock every other mask on the layer (Lock Other Masks)
lockedbooleanLock or unlock the masks (false with masks omitted: Unlock All Masks)
masksobjectWhich masks on each layer: indexes (1-based, as in the Timeline) or names. Omit for every mask
modestringMask mode
motionBlurstringMask motion blur (Layer > Mask > Motion Blur)
namestringRename the mask (one mask per layer only)
opacitynumberMask opacity, percent
rotoBezierbooleanRotoBezier: curves calculated through the vertices
selectedbooleanSelect or deselect the masks

manage_masks Manage Masks

Delete masks (or all of them: Layer > Masks > Remove All Masks), duplicate them (Edit > Duplicate), select them or move the selection to the next or previous mask, toggle Layer > Mask > Hide Locked Masks, or limit an effect to masks (the effect's Compositing Options > Mask Reference)

ParameterTypeDescription
action *stringdelete (every mask when masks is omitted), duplicate, select (only these), select_next or select_previous (from the selected mask on each layer), toggle_hide_locked (Hide Locked Masks on the layers),…
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
effectstring | integerreference_in_effect: the effect on the layer, by name or 1-based index in the Effect Controls panel
masksobjectWhich masks on each layer: indexes (1-based, as in the Timeline) or names. Omit for every mask

set_bezier_path Set Bezier Path

Edit a mask path or a shape layer's Path property: replace its vertices and tangents, make another vertex the first (Layer > Mask and Shape Path > Set First Vertex), reverse its direction, move, scale and rotate all its points about an anchor (as Free Transform Points does), or set variable-width feather points on a mask (Mask Feather tool: extent, tension, Hold, inner or outer). Points are in the layer's own pixels; tangents are relative to their vertex; vertex and segment numbers start at 0

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
allKeyframesbooleanApply firstVertex, reverse, transform or featherPoints to every keyframe of an animated path
closedbooleanWith vertices: closed path. Default true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
featherPointsarrayMasks: replace the variable-width feather points ([] removes them)
firstVertexintegerMake this vertex (0-based) the first one of a closed path
inTangentsarrayWith vertices: in tangents relative to each vertex; default none
maskstring | integerThe mask, by name or 1-based index
outTangentsarrayWith vertices: out tangents relative to each vertex; default none
propertyInstead of mask: a shape layer Path property, a path of match names or names from the layer, e.g. ["ADBE Root Vectors Group", "Shape 1", "ADBE Vectors Group", "Path 1", "ADBE Vector Shape"]
reversebooleanReverse the order of the vertices (the path direction)
timenumberSeconds: set a keyframe at this time. Default: the static value, or a keyframe at the current time when the path is animated
transformobjectTransform every point together about an anchor, as Free Transform Points does
verticesarrayReplace the path: vertices [[x, y], ...]

list_shape_content List Shape Content

List a shape layer's Contents (Timeline panel): groups, paths, fills, strokes and path operations as a tree with their type and match name, optionally with every property value

ParameterTypeDescription
layers *objectWhich shape layers: indexes (1-based), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
grouparrayThe group to work in: names or 1-based indexes of nested groups from the layer's Contents, e.g. ["Shape 1"]. Omit for Contents itself
valuesbooleanInclude each item's property values. Default false

add_shape_content Add Shape Content

Add shapes to shape layers (the Timeline panel's Add menu), or to a new shape layer: groups (which can hold items of their own), rectangle, ellipse, polystar and free paths, fill, stroke, gradient fill and gradient stroke, and the path operations Merge Paths, Offset Paths, Pucker & Bloat, Repeater, Round Corners, Trim Paths, Twist, Wiggle Paths, Wiggle Transform and Zig Zag, each with its settings. Items are added in order at the end of the group. Gradient colours are set in the Gradient Editor

set_shape_content Set Shape Content

Change settings of existing shape items: group Transform and Blend Mode; rectangle, ellipse, polystar and path geometry and Reverse Path Direction; fill and stroke colour, opacity, Stroke Width, Line Cap, Line Join, Dashes, Taper, Wave, Fill Rule and Composite; gradient type, Start and End Point and Highlight; and the path operations' settings (Merge Paths Mode, Repeater copies, offset and composite, Trim Multiple Shapes, Offset Paths copies, Zig Zag points, Wiggle Paths correlation, ...). Each option must apply to every item named

arrange_shape_content Arrange Shape Content

Rearrange shape items in a group: delete, duplicate, move to a position, Group Shapes (wrap the items in a new group), Ungroup Shapes (dissolve groups) or Convert To Bezier Path (turn a rectangle, ellipse or polystar into a free path). Grouping, ungrouping and converting open the composition and run the Layer > Mask and Shape Path command on the items

ParameterTypeDescription
action *stringWhat to do with the items
items *arrayItems in the group, by name or 1-based index
layers *objectWhich shape layers: indexes (1-based), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
grouparrayThe group to work in: names or 1-based indexes of nested groups from the layer's Contents, e.g. ["Shape 1"]. Omit for Contents itself
toIndexintegermove: the new 1-based position in the group

create_shapes_from_vector_layer Create Shapes From Vector Layer

Convert Illustrator, PDF or SVG footage layers to shape layers (Layer > Create > Create Shapes from Vector Layer). Each new shape layer is placed above its source, which is turned off

ParameterTypeDescription
layers *objectVector footage layers: indexes (1-based), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

select_drawing_tool Select Drawing Tool

Choose the active tool in the Tools panel (shape and mask tools: Rectangle, Rounded Rectangle, Ellipse, Polygon, Star; Pen, Add Vertex, Delete Vertex, Convert Vertex, Mask Feather; Brush, Clone Stamp, Eraser; Roto Brush, Refine Edge; or Selection), and/or open the Paint, Brushes or Content-Aware Fill panel (Window menu, which toggles a panel that is already open). Drawing with the tool is then done by hand in the Composition or Layer panel

ParameterTypeDescription
panelstringPanel to open from the Window menu
toolstringTool to make active

list_paint_strokes List Paint Strokes

List the paint strokes on layers (Paint effects made with the Brush, Clone Stamp and Eraser tools) and the Roto Brush & Refine Edge effects, with every setting's name and value, so set_paint_strokes and set_roto_brush can address them

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

set_paint_strokes Set Paint Strokes

Change or keyframe existing paint strokes (Paint effect, Timeline panel): Start and End (write-on), colour, diameter, hardness, opacity, flow and the other brush settings, a clone stroke's Clone Position, Clone Time and Clone Time Shift, the stroke's Transform, and the effect's Paint on Transparent. Strokes themselves are drawn by hand with the Brush, Clone Stamp or Eraser tool

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
anchorPointarrayStroke Transform: Anchor Point [x, y]
anglenumberBrush angle, degrees
clonePositionarrayClone strokes: Clone Position [x, y], where the stroke samples from
cloneTimenumberClone strokes: Clone Time, seconds
cloneTimeShiftnumberClone strokes: Clone Time Shift, seconds
colorstringBrush colour, "#RRGGBB" or "rgb(r,g,b)"
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
diameternumberDiameter, pixels
effectstring | integerWhich effect, by name or 1-based index in the Effect Controls panel; omit for every one of its kind on the layer
endnumberEnd, percent (animate it to write the stroke on)
flownumberFlow, percent
hardnessnumberHardness, percent
opacitynumberOpacity, percent
paintOnTransparentbooleanThe Paint effect's Paint on Transparent switch
positionarrayStroke Transform: Position [x, y]
rotationnumberStroke Transform: Rotation, degrees
roundnessnumberRoundness, percent
scalearrayStroke Transform: Scale [x, y] percent
spacingnumberSpacing, percent
startnumberStart, percent of the stroke drawn from
strokesarrayStrokes by name (e.g. "Brush 1", "Clone 2") or 1-based index; omit for every stroke
timenumberSeconds: set keyframes at this time (animates the strokes). Default: static values, or keyframes at the current time on animated properties

set_roto_brush Set Roto Brush

Set the Roto Brush & Refine Edge effect's settings on layers (Effect Controls panel): propagation (Search Radius, View Search Radius, Motion Threshold, Motion Damping, Edge Detection, Enable Classic Controls, Use Alternate Color Estimation), matte (Feather, Contrast, Shift Edge, Reduce Chatter, Smooth) for the Roto Brush or Refine Edge matte, and refinement (Fine-tune Refine Edge Matte, Extend Where Smoothed, Increase Radius, View Map). Settings are found by their English names. Segmentation strokes and propagation are done by hand with the Roto Brush and Refine Edge tools

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
effectstring | integerWhich effect, by name or 1-based index in the Effect Controls panel; omit for every one of its kind on the layer
mattestringWhich matte group feather, contrast, shiftEdges, reduceChatter and smooth apply to. Default roto
propertiesobjectAny other setting of the effect by name or match name, to a number or true/false
settingsobjectSettings to change
timenumberSeconds: set keyframes at this time

list_render_templates List Render Templates

List the render settings and output module templates (Edit > Templates) available for queueing

queue_render Queue Render

Add a composition to the Render Queue (Composition > Add to Render Queue) with a render settings template, an output module template and an output file, optionally a time span, a single frame (Composition > Save Frame As > File) or as a pre-render that imports the result and replaces the composition's uses (Composition > Pre-render)

ParameterTypeDescription
outputFile *stringAbsolute output path; the extension should match the output module
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
durationnumberSeconds
framenumberRender only the frame at this time (seconds), as Save Frame As > File does; not with start or duration
outputModulestringOutput module template, e.g. "High Quality", "H.264 - Match Render Settings - 15 Mbps"
preRenderbooleanPre-render: after rendering, import the file and replace the composition's uses with it. Default false
renderSettingsstringRender settings template, e.g. "Best Settings"
startnumberSeconds

render_queue Render Queue

Render every queued item in After Effects (blocks until done; raise AFTEREFFECTS_SCRIPT_TIMEOUT_MS for long renders), or send the queue to Adobe Media Encoder

ParameterTypeDescription
mediaEncoderbooleanQueue in Adobe Media Encoder instead. Default false
startEncodingbooleanMedia Encoder: start encoding at once. Default true

manage_render_queue Manage Render Queue

Read the Render Queue, or remove, duplicate (Edit > Duplicate in the Render Queue panel), or turn items on and off for rendering

ParameterTypeDescription
action *stringlist, remove, duplicate (copies go to the end of the queue), enable, disable, or clear the whole queue
itemsarray1-based queue indexes

get_render_item Get Render Item

Read Render Queue items in full (Render Queue panel): status, start and elapsed render time, log level, notification, time span, every render setting and every output module's format, file, file name template, post-render action and settings, by the names set_render_settings and set_output_module accept

ParameterTypeDescription
itemsarray1-based queue indexes; omit for every item

set_render_settings Set Render Settings

Change Render Queue items' render settings (Render Settings dialog): apply a template (Best Settings, Draft Settings, DV Settings, Multi-Machine Settings or your own), set quality, resolution, disk cache, proxies, effects, solo switches, guide layers, colour depth, frame blending, field rendering, 3:2 pulldown, motion blur, time span, frame rate and Skip Existing Files, the log level and the completion notification, and optionally save the result as a template

ParameterTypeDescription
items *array1-based queue indexes
colorDepthstring"Color Depth": Current Settings, 8 bits per channel, 16 bits per channel or 32 bits per channel
diskCachestring"Disk Cache": Read Only or Current Settings
durationnumberCustom time span duration, seconds
effectsstring"Effects": Current Settings, All On or All Off
fieldRenderstring"Field Render": Off, Upper Field First or Lower Field First
frameBlendingstring"Frame Blending": Current Settings, On for Checked Layers or Off for All Layers
frameRateFrame rate: a number of frames per second, or "comp" for the composition's rate
guideLayersstring"Guide Layers": Current Settings (render guide layers in the top composition) or All Off
logTypestringLog: errors only, plus settings, or plus per-frame information
motionBlurstring"Motion Blur": Current Settings, On for Checked Layers or Off for All Layers
notifybooleanSend a Creative Cloud notification when this item finishes (the Notify checkbox)
proxyUsestring"Proxy Use": Current Settings, Use All Proxies, Use Comp Proxies Only or Use No Proxies
pulldownstring"3:2 Pulldown": Off or a phase such as WSSWW
qualitystring"Quality": Current Settings, Best, Draft or Wireframe
resolutionstring"Resolution": Current Settings, Full, Half, Third, Quarter or Custom
saveAsTemplatestringSave the first item's resulting render settings as a template with this name
settingsobjectAny other settings by the English name After Effects gives them (get_render_item shows the settable names and current values), e.g. { "Quality": "Best" }
skipExistingFilesbooleanSkip frames already in the output folder, so several computers can render one image sequence
skipFramesintegerFrames to skip between rendered frames for quick tests; 1 renders on twos
soloSwitchesstring"Solo Switches": Current Settings or All Off
startnumberCustom time span start, seconds
templatestringRender settings template applied first, e.g. "Best Settings", "Draft Settings", "DV Settings", "Multi-Machine Settings" (list_render_templates lists them)
timeSpanstring"Time Span": Length of Comp, Work Area Only or Custom

set_output_module Set Output Module

Change, add or remove a Render Queue item's output module (Output Module Settings dialog, Composition > Add Output Module): template or output format (QuickTime, AVI, H.264, image sequences such as PNG, TIFF, JPEG, OpenEXR, DPX, Targa, Photoshop, SGI, IFF, Radiance, or audio as AIFF, MP3, WAV), output file and file name template, channels, depth, colour, starting frame number, resize, crop, audio output, project link, source XMP metadata and post-render action, and optionally save it as a template. Codecs such as GoPro CineForm are chosen through a template made in Edit > Templates > Output Mo…

ParameterTypeDescription
item *integer1-based Render Queue index
addbooleanAdd a new output module to the item and change that one (Composition > Add Output Module). Default false
audioobjectAudio output
channelsstring"Channels": RGB, Alpha or RGB + Alpha
colorstring"Color": Premultiplied (Matted) or Straight (Unmatted)
cropobjectCrop pixels from the edges (negative values add pixels)
depthstring"Depth", e.g. Millions of Colors, Millions of Colors+, Trillions of Colors, Floating Point
fileTemplatestringFile name template from the Output To menu, e.g. "[compName]_[#####].[fileExtension]"
formatstringOutput format: applies the first output module template that writes it
includeProjectLinkbooleanEmbed a link back to the After Effects project
includeSourceXmpbooleanCopy XMP metadata from the source footage into the output
outputFilestringAbsolute output path. For image sequences include frame-number signs, e.g. frame_[#####].png
outputModuleinteger1-based output module of the item. Default 1
postRenderActionstringAfter rendering: nothing, import the file, import it and replace the composition's uses, or set it as the composition's proxy
removebooleanRemove the output module (the item keeps at least one). Default false
resizeobjectResize the output
saveAsTemplatestringSave the resulting output module as a template with this name
settingsobjectAny other settings by the English name After Effects gives them (get_render_item shows the settable names and current values), e.g. { "Quality": "Best" }
startingNumberintegerFirst frame number of an image sequence ("Starting #"); turns off Use Comp Frame Number
templatestringOutput module template, e.g. "High Quality", "Lossless", "H.264 - Match Render Settings - 15 Mbps" (list_render_templates lists them)
useCompFrameNumberbooleanNumber sequence frames from the composition's frame numbers

control_render_queue Control Render Queue

Show or hide the Render Queue panel (Window > Render Queue), pause, continue or stop a render in progress, turn the whole-queue completion notification on or off, and read progress: each item's status, start time and elapsed time

ParameterTypeDescription
actionstringDefault status. pause, continue and stop act on the render in progress
notifybooleanSend a Creative Cloud notification when the whole queue finishes

configure_render_engine Configure Render Engine

Turn Multi-Frame Rendering on or off with a CPU limit for the next render, start, pause, continue or end Watch Folder mode (File > Watch Folder: After Effects then renders projects saved into the folder and stops taking other work), and report whether this After Effects is a render-only engine

ParameterTypeDescription
folderstringstart: absolute path of the folder to watch
maxCpuPercentintegerMost CPU Multi-Frame Rendering may use, 1-100. Default 100
multiFrameRenderingbooleanUse Multi-Frame Rendering
watchFolderstringWatch Folder mode

set_camera_options Set Camera Options

Set camera layer options (Layer > Camera Settings, and Camera Options in the Timeline): zoom, F-Stop, depth of field, focus distance, aperture, blur level, iris shape, rotation, roundness, aspect ratio and diffraction fringe, highlight gain, threshold and saturation, and Point of Interest. Values are keyframed when the property is animated or a time is given

ParameterTypeDescription
layers *objectWhich camera layers. Give indexes (1-based, from list_layers), names, or selected: true
aperturenumberAperture in pixels; larger blurs more
blurLevelnumberBlur Level, percent
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
depthOfFieldbooleanDepth of Field on or off; the Advanced 3D renderer renders it in-engine
fStopnumberF-Stop (Camera Settings): sets Aperture to Zoom divided by the F-Stop. Not with aperture
focusDistancenumberFocus Distance in pixels
highlightGainnumberHighlight Gain
highlightSaturationnumberHighlight Saturation
highlightThresholdnumberHighlight Threshold, percent
irisAspectRationumberIris Aspect Ratio
irisDiffractionFringenumberIris Diffraction Fringe
irisRotationnumberIris Rotation, degrees
irisRoundnessnumberIris Roundness, percent
irisShapestringIris Shape
pointOfInterestarrayPoint of Interest [x, y, z] in pixels, for two-node cameras and lights
timenumberSeconds: set keyframes at this time. Omit to set the static value, or a keyframe at the current time when the property is already animated
zoomnumberZoom: pixels from the camera to the image plane (sets the angle of view and focal length)

set_light_options Set Light Options

Set light layer options (Layer > Light Settings, and Light Options in the Timeline): light type, intensity, colour, cone angle and feather, falloff type, radius and falloff distance, casts shadows, shadow darkness and diffusion, Point of Interest, and an environment light's source layer. Values are keyframed when the property is animated or a time is given

ParameterTypeDescription
layers *objectWhich light layers. Give indexes (1-based, from list_layers), names, or selected: true
castsShadowsbooleanCasts Shadows (spot, parallel and environment lights). Layers also need Material Options > Casts Shadows on
colorstringLight colour: "#RRGGBB" or "rgb(r,g,b)" (0-255)
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
coneAnglenumberCone Angle in degrees (spot lights)
coneFeathernumberCone Feather, percent (spot lights)
falloffstringFalloff type
falloffDistancenumberFalloff Distance in pixels
intensitynumberIntensity, percent; negative removes light
lightSourceintegerEnvironment lights: index of the 2D layer in the same composition to light the scene with (Light Options > Source)
lightTypestringLight Type
pointOfInterestarrayPoint of Interest [x, y, z] in pixels, for two-node cameras and lights
radiusnumberRadius in pixels, where light is at full intensity before falloff
shadowDarknessnumberShadow Darkness, percent
shadowDiffusionnumberShadow Diffusion in pixels
timenumberSeconds: set keyframes at this time. Omit to set the static value, or a keyframe at the current time when the property is already animated

set_material_options Set Material Options

Set a 3D layer's Material Options: casts shadows (off, on, only), light transmission, accepts shadows (off, on, only: a shadow catcher), accepts lights, ambient, diffuse, specular intensity and shininess, metal, appears in reflections, reflection intensity, sharpness and rolloff, transparency and its rolloff, and index of refraction. Also turns a layer into an environment layer (Layer > Environment Layer). Values are keyframed when the property is animated or a time is given

ParameterTypeDescription
layers *objectWhich 3D layers. Give indexes (1-based, from list_layers), names, or selected: true
acceptsLightsbooleanAccepts Lights: off leaves the layer unlit
acceptsShadowsstringAccepts Shadows: off, on, or only (shadows alone, for a shadow catcher)
ambientnumberAmbient, percent
appearsInReflectionsstringAppears in Reflections: off, on, or only
castsShadowsstringCasts Shadows: off, on, or only (the shadow without the layer)
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
diffusenumberDiffuse, percent
environmentLayerbooleanLayer > Environment Layer: use this footage or precomposition layer as the spherical environment for reflections (Cinema 4D renderer; Advanced 3D uses environment lights instead)
indexOfRefractionnumberIndex of Refraction
lightTransmissionnumberLight Transmission, percent
metalnumberMetal, percent
reflectionIntensitynumberReflection Intensity, percent
reflectionRolloffnumberReflection Rolloff, percent
reflectionSharpnessnumberReflection Sharpness, percent
specularIntensitynumberSpecular Intensity, percent
specularShininessnumberSpecular Shininess, percent
timenumberSeconds: set keyframes at this time. Omit to set the static value, or a keyframe at the current time when the property is already animated
transparencynumberTransparency, percent (separate from layer Opacity)
transparencyRolloffnumberTransparency Rolloff, percent

set_geometry_options Set Geometry Options

Set a 3D layer's Geometry Options: extrude and bevel text and shape layers (bevel style, bevel depth, hole bevel depth, extrusion depth) or bend footage and precomposition layers (curvature, segments). Extrusion needs the Advanced 3D or Cinema 4D renderer (set_comp_3d_settings). Values are keyframed when the property is animated or a time is given

ParameterTypeDescription
layers *objectWhich 3D layers. Give indexes (1-based, from list_layers), names, or selected: true
bevelDepthnumberBevel Depth in pixels (text and shape layers)
bevelStylestringBevel Style (text and shape layers)
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
curvaturenumberCurvature, percent (footage and precomposition layers)
extrusionDepthnumberExtrusion Depth in pixels (text and shape layers)
holeBevelDepthnumberHole Bevel Depth, percent of Bevel Depth (text and shape layers)
segmentsnumberSegments, the facets of a curved layer (footage and precomposition layers)
timenumberSeconds: set keyframes at this time. Omit to set the static value, or a keyframe at the current time when the property is already animated

set_comp_3d_settings Set Comp 3d Settings

Choose a composition's 3D renderer (Composition Settings > 3D Renderer: Classic 3D, Advanced 3D or Cinema 4D) and turn Draft 3D on or off (Composition panel). With no settings it reports the renderer, the installed renderers, Draft 3D and the active camera

ParameterTypeDescription
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
draft3dbooleanDraft 3D: preview the scene in real time at draft quality
rendererstringclassic_3d, advanced_3d, cinema_4d, or a renderer id from this tool's renderers list

set_3d_view Set 3d View

Change the 3D view of a composition's Composition panel (View menu): switch to the active camera, front, left, top, back, right, bottom or a custom view (View > Switch 3D View) or the last view, reset the view, look at the selected or all layers, or create a camera from the current view. Opens the composition in the viewer first

ParameterTypeDescription
actionstringInstead of a view: View > Reset 3D View, Look at Selected Layers, Look at All Layers, or Create Camera from 3D View
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
viewstringThe view to switch to (View > Switch 3D View; last = View > Switch to Last 3D View)

run_camera_command Run Camera Command

Run a Layer > Camera or Layer > Light command on a layer: link the focus distance to the Point of Interest or to another layer, set the focus distance to another layer once, create an orbit null, create a stereo 3D rig (whose Stereo 3D Controls set_property can change), or create cameras or lights from a 3D model layer. Selects the layers the command needs first

ParameterTypeDescription
command *string
layer *integerThe camera layer index (focus, orbit null and stereo commands) or the 3D model layer index (create cameras or lights)
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
targetintegerlink_focus_to_layer and set_focus_to_layer: the layer to focus on

set_camera_tool Set Camera Tool

Choose a camera navigation tool in the Tools panel: the Unified Camera tool, Orbit (around the cursor, the scene or the camera's Point of Interest), Pan (Track XY) or Dolly (Track Z). Navigating with the tool in a viewer is done by hand

ParameterTypeDescription
tool *stringorbit, pan and dolly are the camera-centred variants

set_essential_graphics Set Essential Graphics

Open a composition in the Essential Graphics panel as its primary composition (Composition > Open in Essential Graphics), set the template name, rename controls, and list the controls

ParameterTypeDescription
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
openbooleanOpen the composition in the Essential Graphics panel. Default true
renameControlsarrayControls to rename
templateNamestringTemplate name shown in the panel and in Premiere Pro; also the exported file name

add_essential_graphics_controls Add Essential Graphics Controls

Add controls to a composition's Essential Graphics panel (Animation > Add Property to Essential Graphics): properties such as Source Text, colours, sliders, checkboxes, angles, 2D points and scale, Dropdown Menu Controls (optionally setting their menu items) and 3D shadow colour, or footage and precomposition layers as media replacement. A nested composition then shows them as Essential Properties

ParameterTypeDescription
controls *arrayControls to add, in order
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

add_protected_region Add Protected Region

Protect part of a composition's timing so it keeps its length when the composition is nested or the template is stretched (Composition > Responsive Design - Time > Create Intro, Create Outro or Create Protected Region from Work Area), or protect a custom span: a composition marker with Protected Region on

ParameterTypeDescription
region *stringintro: the first 15% of the duration; outro: the last 15%; work_area; custom: start and duration
commentstringMarker comment
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
durationnumbercustom: duration, seconds
startnumbercustom: start, seconds

export_motion_graphics_template Export Motion Graphics Template

Export a composition as a Motion Graphics template (.mogrt) (File > Export > Export As Motion Graphics Template) to the Local Templates Folder or a folder on a local drive. The file is named after the template name

ParameterTypeDescription
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
folderstringAbsolute folder to save into. Omit for the Local Templates Folder (Essential Graphics templates)
overwritebooleanReplace a file of the same name. Default false
templateNamestringSet the template name (and file name) first. Default: the current template name, or the composition name

start_tracking Start Tracking

Set up tracking from the Animation menu on one layer: Track Motion (adds a point tracker and opens the layer in the Layer panel), Track Mask (the mask tracker for the chosen masks), Track this Property (a track that drives the chosen property), Paste Mocha mask (Edit menu), Track in Boris FX Mocha; or open the Tracker panel or the Motion Tracking workspace (Window menu). The analysis itself runs from the Tracker panel; read and edit the resulting track points with get_tracking_data and set_track_point

ParameterTypeDescription
action *stringtrack_motion, track_mask, track_property, paste_mocha_mask, track_in_mocha, tracker_panel (Window > Tracker) or workspace (Motion Tracking workspace)
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
layersobjectThe layer: one index (1-based, from list_layers), name, or selected: true
masksarraytrack_mask: mask indexes (1-based); omit for every mask on the layer
propertytrack_property: the property the track drives. A property: a shortcut (anchor_point, position, scale, rotation, opacity, x_rotation, y_rotation, orientation, source_text, time_remap, audio_levels) or…
timenumberMove the current time here first (tracking starts from the current time)

apply_warp_stabilizer Apply Warp Stabilizer

Apply Warp Stabilizer VFX to layers (Animation > Warp Stabilizer VFX), or change the one already applied, and set its controls: Result, Smoothness, Method, Preserve Scale, Framing, Auto-scale, Additional Scale, Detailed Analysis, Rolling Shutter Ripple, Crop Less <-> Smooth More, synthesis options, Objective, Target Layer, Track Point Size, Auto-delete Points and Hide Warning Banner. After Effects analyses the layer in the background after the effect is added or its analysis settings change

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
actionSafeMarginnumberAuto-scale > Action-Safe Margin percent
addNewbooleanAdd another instance even when the layer already has Warp Stabilizer. Default false: change the existing one
additionalScalenumberAdditional Scale percent
autoDeletePointsbooleanAdvanced > Auto-delete Points Across Time
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
cropLessSmoothMorenumberAdvanced > Crop Less <-> Smooth More percent
detailedAnalysisbooleanAdvanced > Detailed Analysis
framingstringFraming: how moving edges are handled
hideWarningBannerbooleanAdvanced > Hide Warning Banner
maximumScalenumberAuto-scale > Maximum Scale percent
methodstringMethod: the most complex stabilization allowed
objectivestringObjective: stabilize, reverse, or apply the motion to a target layer
preserveScalebooleanPreserve Scale
resultstringResult: smooth the camera move or remove it
rollingShutterRipplestringAdvanced > Rolling Shutter Ripple
smoothnessnumberSmoothness percent (Smooth Motion)
synthesisEdgeCroppingobjectAdvanced > Synthesis Edge Cropping, pixels trimmed from each edge
synthesisEdgeFeathernumberAdvanced > Synthesis Edge Feather
synthesisInputRangenumberAdvanced > Synthesis Input Range, seconds
targetLayerintegerTarget Layer index for the apply_motion_to_target objectives
trackPointSizenumberAdvanced > Track Point Size percent

apply_camera_tracker Apply Camera Tracker

Track the camera of footage layers (Animation > Track Camera): apply the 3D Camera Tracker effect, or change the one already applied, and set Solve Method, Detailed Analysis, Auto-delete Points Across Time and Hide Warning Banner. After Effects analyses the layer in the background; creating a camera or content from the solved points is done in the Composition panel

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
addNewbooleanAdd another instance even when the layer already has 3D Camera Tracker. Default false: change the existing one
autoDeletePointsbooleanAdvanced > Auto-delete Points Across Time
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
detailedAnalysisbooleanAdvanced > Detailed Analysis
hideWarningBannerbooleanAdvanced > Hide Warning Banner
solveMethodstringAdvanced > Solve Method: a hint about the scene

get_tracking_data Get Tracking Data

Read tracking results from layers: each tracker's track points (Feature Center, Feature Size, Search Offset, Search Size, Confidence, Attach Point, Attach Point Offset), or the Face Measurements and Face Track Points that detailed face tracking records, at a time and optionally every keyframe

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
keyframesbooleanAlso list each property's keyframes (time and value)
limitintegerMost keyframes per property
sourcestringtrackers (Motion Trackers) or face (the face-tracking effects)
timenumberRead values at this time in seconds. Default: the current time

set_track_point Set Track Point

Edit a track point on a layer's tracker (created by start_tracking track_motion): Feature Center, Feature Size, Search Offset, Search Size, Attach Point and Attach Point Offset, in pixels. With a time, or when the property is already keyframed, it sets a keyframe; otherwise the static value

ParameterTypeDescription
layers *objectThe layer: one index (1-based, from list_layers), name, or selected: true
attachPointarrayAttach Point [x, y]
attachPointOffsetarrayAttach Point Offset [x, y] from the feature centre
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
featureCenterarrayFeature Center [x, y]
featureSizearrayFeature Size [width, height]
pointTrack point index (1-based) or name, e.g. "Track Point 1". Default 1
searchOffsetarraySearch Offset [x, y] from the feature centre
searchSizearraySearch Size [width, height]
timenumberSet keyframes at this time in seconds
trackerTracker index (1-based) or name, e.g. "Tracker 1". Default 1

get_color_management Get Color Management

Read the project's colour settings (File > Project Settings > Color): bit depth, working colour space, working gamma, Linearize Working Color Space, Blend Colors Using 1.0 Gamma and Compensate for Scene-referred Profiles, and optionally the ICC colour profiles that can be the working space

ParameterTypeDescription
listProfilesbooleanAlso list the colour profiles available as working spaces
querystringOnly profiles whose description contains this text (case-insensitive)

set_color_management Set Color Management

Change the project's colour settings (File > Project Settings > Color): bit depth (8, 16 or 32 bpc, where 32 is high dynamic range float), working colour space (a profile from get_color_management, or "" for None), working gamma, Linearize Working Color Space, Blend Colors Using 1.0 Gamma and Compensate for Scene-referred Profiles

ParameterTypeDescription
bitsPerChannelintegerBit depth: 8, 16 or 32 (floating point, high dynamic range)
compensateForSceneReferredProfilesbooleanCompensate for Scene-referred Profiles
linearBlendingbooleanBlend Colors Using 1.0 Gamma
linearizeWorkingSpacebooleanLinearize Working Color Space
workingGammanumberWorking gamma when the working space is None
workingSpacestringWorking colour space: a profile description from get_color_management listProfiles, or "" for None

set_display_color Set Display Color

Display colour in the Composition panel (View menu): turn Use Display Color Management on or off (the command toggles it; scripts cannot read its state), choose a Simulate Output preset (display colour management must be on), or open the Lumetri Scopes panel. Applies to the composition opened in the viewer

ParameterTypeDescription
action *stringtoggle_display_color_management, simulate_output or lumetri_scopes
compobjectOpen this composition in the viewer first. Omit to use the active viewer
outputstringsimulate_output: the output to simulate (none turns simulation off)

apply_color_effect Apply Color Effect

Apply a colour effect (Effect > Color Correction or Utility) to layers, or to a new adjustment layer at the top of the composition so it affects everything below and final renders: Lumetri Color, Curves, Levels, Hue/Saturation, Exposure and other grading effects; Broadcast Colors to keep output broadcast-safe; Color Profile Converter to simulate an output type in renders. Set controls by display name with properties

ParameterTypeDescription
effect *stringThe colour effect
adjustmentLayerbooleanApply to a new adjustment layer spanning the composition, at the top
broadcastLocalestringbroadcast_colors: Broadcast Locale
broadcastMethodstringbroadcast_colors: How To Make Color Safe
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
layerNamestringName of the new adjustment layer. Default: the effect name
layersobjectApply to these layers. Which layers. Give indexes (1-based, from list_layers), names, or selected: true. Omit with adjustmentLayer: true
maxSignalIrenumberbroadcast_colors: Maximum Signal Amplitude (IRE)
propertiesobjectControl display names to values (numbers, arrays, booleans; menus take their 1-based item number), e.g. { "Exposure": 0.5 }

purge_caches Purge Caches

Free memory or disk cache (Edit > Purge): all memory and disk cache, all memory, undo history, image cache memory, snapshots, all disk cache, all 3D cache, or all cache. Purging undo means earlier steps can no longer be undone

ParameterTypeDescription
targets *arrayWhat to purge, in order

run_edit_command Run Edit Command

Run an Edit menu command: Undo or Redo (several steps back or forward through Edit > History), Cut, Copy, Paste, Select All, Deselect All, or Select Label Group. They act on the focused panel and its selection; give comp to focus that composition first. Copied layers can be pasted into Premiere Pro

ParameterTypeDescription
command *stringThe Edit menu command
compobjectFocus this composition's viewer first (item id or name). Omit to act on whatever panel has focus
timesintegerUndo or Redo: how many steps. Default 1

get_aftereffects_info Get After Effects Info

Describe the running After Effects and the computer: version, build, language, memory in use, render-engine and watch-folder modes, operating system, the project's GPU acceleration (File > Project Settings) and the types available, whether viewer updates are paused, and the values of preference keys you name

ParameterTypeDescription
preferencesarrayPreference keys to read from the preferences files

set_application_settings Set Application Settings

Change application and project performance settings: memory limits (Preferences > Memory & Performance), the project's Mercury GPU acceleration (File > Project Settings), whether preferences are saved on quit, and the preferences the scripting guide documents (expand flowchart compositions, JavaScript debugger)

ParameterTypeDescription
expandFlowchartCompsbooleanFlowchart: expand compositions by default
gpuAccelerationstringProject GPU acceleration; must be one the computer offers (see get_aftereffects_info)
imageCachePercentnumberImage cache size as a percent of memory; give with maximumMemoryPercent
javascriptDebuggerbooleanScripting & Expressions: enable the JavaScript debugger
maximumMemoryPercentnumberMaximum memory After Effects may use, as a percent of installed RAM; the rest stays reserved for other applications
savePreferencesOnQuitbooleanSave preferences when After Effects quits

manage_script_settings Manage Script Settings

Read, save or check a saved script setting (app.settings): text values kept in the After Effects preferences between sessions, under a section and key of your choosing. Values are stored as text, at most 1999 bytes

ParameterTypeDescription
action *stringget reads the value, save stores it, has checks it exists
key *stringKey name
section *stringSection name, e.g. your script's name
filestringPreference file (PREFType). Default machine_specific, the "Prefs.txt" file
valuestringsave: the text to store

quit_aftereffects Quit After Effects

Quit After Effects (After Effects > Quit, or File > Exit on Windows). Unsaved changes are refused unless you choose to save or discard them. After Effects quits a moment after the call returns

ParameterTypeDescription
unsavedChangesstringWhat to do if the project has unsaved changes: refuse (default, the call fails), save to its file, or discard

get_viewer_state Get Viewer State

Describe the focused viewer (Composition, Layer or Footage panel) and its views: zoom, channel, exposure, Fast Previews, transparency grid, rulers and guides; the active composition's resolution and current time; the active tool; and whether viewer updates are paused

set_view_options Set View Options

Change a viewer's view options: magnification (zoom percent, 100 for actual size), the Show Channel menu (RGB, red, green, blue, alpha, colorized, straight RGB; alpha boundary and overlay in the Layer panel), exposure, the transparency grid, Fast Previews (Off, Adaptive Resolution, Draft, Fast Draft, Wireframe), rulers, guides (show, snap, lock), which view is active, and maximizing the panel. Also the composition's resolution (Full, Half, Third, Quarter, Custom) and pausing viewer updates (Caps Lock)

ParameterTypeDescription
channelstringShow Channel. alpha_boundary and alpha_overlay are Layer panel only
compobjectOpen this composition in the Composition panel and use that viewer (item id or name). Omit both comp and layer for the focused viewer
customResolutionobjectCustom resolution: render every Nth pixel across and down
exposurenumberAdjust Exposure, in stops; 0 resets
fastPreviewstringFast Previews mode (Composition panel only)
guidesLockedbooleanView > Lock Guides
guidesSnapbooleanView > Snap to Guides
guidesVisiblebooleanView > Show Guides
layerintegerOpen this layer (1-based, in comp or the active composition) in the Layer panel and use that viewer
maximizedbooleanMaximize the viewer panel, or restore it
pauseViewerUpdatesbooleanStop viewers redrawing, as Caps Lock does
resolutionstringComposition resolution (down-sample factor); custom takes customResolution
rulersbooleanView > Show Rulers
transparencyGridbooleanShow the transparency checkerboard
viewintegerMake this view (1-based, in a two- or four-view layout) active and change it. Default the active view
zoomPercentnumberMagnification percent; 100 is actual pixels

run_view_command Run View Command

Run a View menu or viewer command on a viewer: Zoom In, Zoom Out, Show Grid, Snap to Grid, Show Layer Controls (these toggle), the view layout (1, 2 or 4 views), Share View Options, New Viewer, or close the viewer (File > Close). Give comp to use its Composition panel; otherwise the focused viewer

ParameterTypeDescription
command *stringThe command
compobjectOpen this composition in the Composition panel and use that viewer (item id or name). Omit both comp and layer for the focused viewer

edit_comp_guides Edit Comp Guides

Add, move, remove or clear a composition's ruler guides (View > Add Guide, Edit Guide, Clear Guides). Positions are pixels from the left (vertical guides) or top (horizontal guides); guides are numbered from 1 in the order they were added

ParameterTypeDescription
action *stringadd a guide, move or remove guide n, or clear all guides
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
guideintegermove, remove: the guide number (1 = first added; add returns it)
orientationstringadd: the guide's direction
positionnumberadd, move: pixels

set_current_tool Set Current Tool

Choose the active tool in the Tools panel (selection, hand, zoom, rotation, camera orbit, pan and dolly modes, shapes, pen, type, paint, Roto Brush, puppet pins), or cycle to the next tool in a group as clicking a tool button repeatedly does. Camera tools need a camera layer

ParameterTypeDescription
cyclestringInstead of tool: move to the next tool in this group
toolstringThe tool to choose

go_to_time Go To Time

Move a composition's current-time indicator: to a time in seconds (View > Go to Time), forward or back a number of frames (Page Down/Page Up), to the start or end, to the start or end of the work area, or to a layer's In or Out point

ParameterTypeDescription
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
framesintegerStep this many frames; negative steps back (1 or 10 match the shortcuts)
layerintegerlayer_in, layer_out: the layer (1-based)
timenumberSeconds
tostringJump to this point

show_panel Show Panel

Open or close a panel from the Window menu: Tools, Info, Audio or Preview. Choosing an open panel's command closes it

ParameterTypeDescription
panel *stringThe panel

switch_workspace Switch Workspace

Switch to a built-in workspace (Window > Workspace), or reset the current workspace to its saved layout. Custom workspaces can be chosen by name with run_menu_command

ParameterTypeDescription
resetbooleanReset the current (or chosen) workspace to its saved layout
workspacestringThe workspace to switch to

set_audio_levels Set Audio Levels

Set layers' Audio Levels (the Audio group, L in the Timeline) in decibels: a static value, or keyframes at times (Animation > Add Audio Levels Keyframe)

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
keyframesarrayInstead of levels: keyframes, each a time and levels
levelsDecibels for both channels, or [left, right]; 0 leaves the audio unchanged

remap_layer_speed Remap Layer Speed

Play layers faster or slower with time remapping (Layer > Time > Enable Time Remapping), which also raises or lowers the pitch of their audio. Replaces any Time Remap keyframes with a constant speed and moves the Out point to the new end

ParameterTypeDescription
layers *objectWhich layers. Give indexes (1-based, from list_layers), names, or selected: true
speedPercent *numberPlayback speed: 100 is normal, 200 twice as fast and an octave higher, 50 half speed. Keep audio under about 200
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

run_audio_command Run Audio Command

Run an audio command on layers: Convert Audio to Keyframes (Animation > Keyframe Assistant), which adds an Audio Amplitude layer with Slider keyframes, or Edit in Adobe Audition (Edit menu), which opens the layer's audio file in Audition when it is installed

ParameterTypeDescription
command *stringThe command
layers *objectThe audio layers to select first (1-based indexes, names, or selected: true)
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition

run_aftereffects_script_file Run After Effects Script File

Run an ExtendScript file in After Effects (File > Scripts > Run Script File) as one undo step with dialogs suppressed, or schedule it to run after a delay (optionally repeating) and cancel a scheduled run, or run a script listed in the File > Scripts menu by its file name. Scripts run unrestricted

ParameterTypeDescription
cancelTaskintegerCancel a scheduled run by the task id it returned
delaySecondsnumberWith file: run it this long from now instead of now, and return the task id
filestringAbsolute path to a .jsx, .jsxbin or .js file
repeatbooleanWith delaySeconds: run again every delaySeconds until cancelled. Default false
scriptsMenuItemstringRun the script shown in File > Scripts with this name, e.g. "Demo Palette.jsx"
undoNamestringName of the undo step (Edit > Undo). Default "Run script"

manage_motion_graphics_template Manage Motion Graphics Template

Build a Motion Graphics template from a composition (Essential Graphics panel): add layer properties as controls, name the template, open the composition in the Essential Graphics panel, or export it as a .mogrt file. Returns the template's controls

ParameterTypeDescription
action *stringWhat to do
compobjectWhich composition. Give its item id (from list_items) or name; omit for the active composition
folderstringexport: absolute folder for the .mogrt (default the Essential Graphics templates folder)
layersobjectadd_property: the layers whose property to add
namestringadd_property: the control's name (default the property name); set_name: the template name
overwritebooleanexport: replace an existing file. Default false
propertyadd_property: A property: a shortcut (anchor_point, position, scale, rotation, opacity, x_rotation, y_rotation, orientation, source_text, time_remap, audio_levels) or a path of match names or display…

manage_team_project Manage Team Project

Work with Team Projects (File > Team Project): check sign-in and status, list team projects, create or open one, share your changes with a comment, get the latest changes, resolve conflicts, convert the open team project to a local .aep, or close it. Needs a Creative Cloud sign-in with Team Projects available

ParameterTypeDescription
action *stringWhat to do; status reports sign-in and which commands are available
commentstringshare: a comment for collaborators
descriptionstringcreate: a description
filestringconvert: absolute path of the .aep or .aet to write
namestringcreate, open: the team project name
resolutionstringresolve: keep the shared version, keep it and a copy of yours, or keep yours

aftereffects_status After Effects Status

Check that After Effects is reachable: platform, how the server addresses After Effects, whether it is running, its version and project. Use this first when a call fails to connect

ParameterTypeDescription
probebooleanAsk After Effects for its version and project (starts it if it is not running). Default true

run_menu_command Run Menu Command

Run an After Effects menu command by its English menu name (found with app.findMenuCommandId) or its numeric id, such as an extension panel under Window > Extensions or a custom workspace. Commands act on the current selection; one that opens a dialog waits for the user, so prefer the specific tools

ParameterTypeDescription
idintegerCommand id instead of a name
namestringMenu item name, e.g. "Sequence Layers..." or "Center Anchor Point in Layer Content"

execute_aftereffects_code Execute After Effects Code

Run your own ExtendScript in After Effects and return its last expression. It runs unrestricted: it can change or delete anything, read or write files, and run system commands (system.callSystem, which needs Allow Scripts to Write Files and Access Network). Prefer the specific tools

ParameterTypeDescription
code *stringExtendScript (ES3) source

help Help

List the tools by area, or describe one tool's parameters

ParameterTypeDescription
toolstringA tool name