Render frame
ae_render_frameRender After Effects frames to PNG for visual verification of edits. Capture one frame or several times in one call, with optional contact sheets and analysis to catch off-frame elements.
Instructions
Render one or more frames to PNG. Use to visually verify edits. The agent's 'eyes' — pair with mutations for a visual feedback loop. Headless and deterministic. Pass time for one frame, or times for several in ONE call (motion checks): files land at _.png and are listed in frames. contactSheet tiles every frame into one labelled PNG (_sheet.png) so a motion check is one image; analyze measures each capture (uniform edge bands = black bars / transparent margins, content bounds, coverage) so off-frame elements and letterboxing are caught numerically. In color-managed projects (workingSpace != None) the capture applies AE's own display transform via a transient OCIO Display Transform adjustment layer, and the PNG comes back viewer-accurate and sRGB-tagged. Where that layer cannot be used — read-only mode, an AE without the OCIO effect, or a failed capture calibration — the result falls back to a pure-math ACES conversion or to raw values with an explicit colorWarning; check colorPipeline / colorWarning on the response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Time in seconds to render. Give exactly one of `time` or `times`. | |
| times | No | Several times in seconds, rendered in ONE call. Files are written as <outPath stem>_<index><ext> and reported in `frames` (index-aligned). | |
| analyze | No | Measure each capture: uniform bands at every edge (width + transparent/color — black bars, letterboxing, empty margins), the bounding box of non-background pixels, coverage, mean RGB. Reported per frame as `analysis` (measured on the capture before color conversion). | |
| outPath | Yes | Absolute path to write the PNG. Parent directory is created if missing. With `times`, used as the naming stem for every frame. | |
| instance | No | After Effects instance to address for this call, when several are running (AfterFX.exe -m): an instance id (its AE_MCP_INSTANCE at launch, or the `name` given to instance.start) or the name of the project file it has open. Omit to use this server's default (AE_MCP_INSTANCE, else the single live instance). ae_context and ae_do instance.list show what is live. | |
| colorManaged | No | 'auto' (default): detect the working space and return a viewer-accurate, 8-bit sRGB-tagged PNG. 'off': raw legacy output (16-bit, untagged, working-space values — dark/wrong-looking in color-managed projects). | |
| compNameOrId | Yes | Composition name or numeric item id. | |
| contactSheet | No | Tile all rendered frames into ONE labelled PNG (#index + time above each tile). Pass {} for defaults. | |
| useDisplayStartTime | No | If true, times are interpreted relative to comp.displayStartTime. Default false. |