apply_expression_preset
Applies a preset expression to an After Effects layer property so you can add wiggle, loop, bounce, smooth, time, or fade behavior without writing expression code.
Instructions
Apply a preset expression. Library: wiggle({freq, amp}) — random jitter; loopOut({type: "cycle"|"pingpong"|"continue"|"offset", numKeyframes}); loopIn({...}); bounce({amp, freq, decay}) — physics-style bounce after last keyframe; smooth({width, samples}) — averaging smooth; time({rate, offset}) — value drives by time; valueAtTime({offset}) — read this prop at offset time; posterizeTime({rate}) — sample-and-hold timing; inertialBounce() — ease-out bounce; autoFade({duration}) — opacity fade in/out at layer in/out points; pingPong() — short for loopOut pingpong.
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>",
"prop": "<prop>",
"preset": "<preset>"
},
"name": "apply_expression_preset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Comp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp. | |
| prop | Yes | Property: a transform alias ("Position","Scale","Rotation","Opacity","Anchor Point","X Rotation","Y Rotation","Orientation"), an ADBE matchName ("ADBE Position", "ADBE Effect Parade.ADBE Gaussian Blur 2.ADBE Blurriness"), or a dotted display path ("Effects.Gaussian Blur.Blurriness"). | |
| layer | Yes | Layer: name (string), 1-based index (integer), or { id: N } for duplicate-name-safe stable-id addressing. | |
| params | No | ||
| preset | Yes | ||
| 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. |