Draw-on (trim paths) animation
draw_on_animationCreate a stroke draw-on animation in After Effects by adding or reusing Trim Paths and keyframing End from 0 to 100%. Animate Start for a wipe-off or swap values to reverse.
Instructions
Convenience: add (or reuse) a Trim Paths in a shape group / Contents root and keyframe its End from 0 to 100 % over 'duration' so strokes draw on. property='start' animates Start instead (wipe-off); reverse swaps from/to. Existing keys on that property are replaced.
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>"
},
"name": "draw_on_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End value % (default 100). | |
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| ease | No | Easing (default easy_ease). | |
| from | No | Start value % (default 0). | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| newTrim | No | Always add a new Trim Paths instead of reusing an existing one in the group. | |
| reverse | No | Swap from/to (un-draw). | |
| duration | No | Animation length (default 1 s). | |
| property | No | Trim property to animate (default end). | |
| groupPath | No | Group to trim (default Contents root = whole layer). | |
| influence | No | Ease influence % (default 33.3; 60-80 = stronger ease). | |
| startTime | No | When the animation starts (default layer in-point). |