Bake expression to keyframes
convert_expression_to_keyframesBakes a property's expression into sampled keyframes over a chosen time range, replacing existing keys and removing the expression for editable animation.
Instructions
Bake a property's expression into keyframes: samples the expression result every stepFrames frames (default 1) over startTime..endTime (default the layer's visible range), replaces existing keys with them and removes the expression.
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>",
"property": "<property>"
},
"name": "convert_expression_to_keyframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| endTime | No | Time: seconds (number), '12f' for frames, or 'HH:MM:SS:FF' timecode. | |
| property | Yes | Property path, '/'-separated, by display name, matchName or 1-based index. Shortcuts: 'Position', 'Scale', 'Rotation', 'Opacity', 'Anchor Point', 'Source Text', 'Time Remap', 'Audio Levels'. Examples: 'Transform/Position', 'Effects/Gaussian Blur/Blurriness', 'Contents/Rectangle 1/Fill 1/Color', 'Masks/Mask 1/Mask Feather'. | |
| startTime | No | Time: seconds (number), '12f' for frames, or 'HH:MM:SS:FF' timecode. | |
| stepFrames | No | Sample every N frames (default 1). | |
| interpolation | No | Interpolation for the baked keys (default AE's, usually linear). |