set_keyframes
Animate anything in a shot by setting, removing, or clearing keyframes on a track; control cast, item, text, light, scene, mask, or adjustment values over time.
Instructions
Animate anything in a shot (shot_id, or scene + shot; left out: the shot on screen) by hand with keyframes on a track. Tracks: "cast:" (x, y, z, size, spin, turn), "item:" (x, z, size), "text:" (x, y, size), "light:" (x, y, z, intensity, color), "scene:light" (level, ambient), "mask:shot", "adjust:", "element:". op set puts values at a time (a first key after 0 also keys the resting value at 0), remove deletes the key at that time, clear drops the track. One undo step for the person. For ready-made moves use direct_cast; for the camera use set_camera keys.
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": {
"track": "<track>"
},
"name": "set_keyframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Seconds into the shot. | |
| op | No | set if left out. | |
| ease | No | How it travels on to the next key: smooth, even, fast-start, slow-start, punch, bounce. | |
| shot | No | Shot index from 0 inside that scene (with scene; alone: in the scene on screen). A shot id works here too. | |
| scene | No | Scene index from 0 (with shot). Used when shot_id isn't given. | |
| track | Yes | Which thing, like "cast:member-1" or "scene:light" (ids from get_shot). | |
| values | No | Like {"x": 3, "size": 1.4}. | |
| shot_id | No | The shot's id from get_project. Or give scene and shot instead. Left out: the shot on screen. |