animate_trim_paths
Adds and keyframes a Trim Paths modifier on a shape or path layer to create draw-on animations, animating the end, start, or offset percent across a set time window with optional easing.
Instructions
Add + keyframe a Trim Paths modifier on a shape/path layer — the classic draw-on. Animates the chosen trim prop from from to to (percent) across the over [startSec,endSec] window. mode picks which prop: "end" (default, draw-on), "start", or "offset". Optional ease (in/out/inout, influence 75).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"layer": "<layer>",
"over": "<over>"
},
"name": "animate_trim_paths"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End value % (default 100). | |
| comp | No | Comp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp. | |
| ease | No | ||
| from | No | Start value % (default 0). | |
| mode | No | Which trim property to animate. | end |
| over | Yes | [startSec, endSec] keyframe times. | |
| layer | Yes | Layer: name (string), 1-based index (integer), or { id: N } for duplicate-name-safe stable-id addressing. | |
| instance | No | Target a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances. |