convert_keyframes_to_expression
Converts keyframed animation on an After Effects layer property into an expression, enabling linear, ease, bounce, elastic, or custom motion without manual keyframes.
Instructions
Convert keyframed animation to an 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": {
"compId": "<compId>",
"layerIndex": "<layerIndex>",
"propertyPath": "<propertyPath>"
},
"name": "convert_keyframes_to_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compId | Yes | ID of the composition | |
| layerIndex | Yes | Index of the layer | |
| propertyPath | Yes | Property path | |
| expressionType | No | Type of expression to generate from keyframes | linear |
| customExpression | No | Custom expression template (for custom type) |