Add loop expression
add_loopLoop a property's keyframes using cycle, pingpong, offset, or continue expressions, choosing out, in, or both directions and limiting by keyframe count or duration.
Instructions
Loop a property's keyframes with loopOut/loopIn: type cycle (default), pingpong, offset, continue. direction out (after the last key, default), in (before the first), in_out (both). numKeyframes limits the loop to the last/first N keys (0 = all); duration uses loopOutDuration/loopInDuration instead.
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": "add_loop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| type | No | ||
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| duration | No | Loop this many seconds instead of keyframes. | |
| 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'. | |
| direction | No | ||
| numKeyframes | No |