add_loop_expression
Adds a cycle, pingpong, offset, or continue loop expression to a layer property in Adobe After Effects to repeat keyframes automatically.
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 | |
| loopType | No | Type of loop | cycle |
| layerIndex | Yes | Index of the layer | |
| numKeyframes | No | Number of keyframes to loop (0 for all) | |
| propertyPath | Yes | Property path |