add_loop_expression
Apply looping behavior to After Effects property animations by configuring cycle, pingpong, offset, or continue patterns for keyframes.
Instructions
Add a loop expression to a property
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": "add_loop_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compId | Yes | ID of the composition | |
| layerIndex | Yes | Index of the layer | |
| propertyPath | Yes | Property path | |
| loopType | No | Type of loop | cycle |
| numKeyframes | No | Number of keyframes to loop (0 for all) |