flashback_set_keyframes
Create or replace keyframes on one track in a single undoable edit. Set camera, FOV, speed, time-of-day, freeze, shake, orbit, or timelapse values per tick to build animation paths.
Instructions
Create or replace keyframes on one track, as a single undoable edit. A keyframe at an existing tick is replaced. Each keyframe needs "tick" (or "seconds") plus the fields for the track type:
CAMERA: {"tick":0,"position":[x,y,z],"yaw":0,"pitch":0,"roll":0} — or "look_at":[x,y,z] instead of yaw/pitch. Same conventions as flashback_set_camera.
FOV: {"tick":0,"fov":70}
SPEED: {"tick":0,"speed":0.5} (1 = real time)
TIME_OF_DAY: {"tick":0,"time":6000} (0-24000; 6000 = noon, 18000 = midnight)
FREEZE: {"tick":0,"freeze":true,"freezeDelay":0}
CAMERA_SHAKE: {"tick":0,"frequencyX":1,"amplitudeX":1,"frequencyY":1,"amplitudeY":1}
CAMERA_ORBIT: {"tick":0,"center":[x,y,z],"distance":10,"yaw":0,"pitch":20}
TIMELAPSE: {"tick":0,"ticks":0} — "ticks" is the output time at which this replay tick is reached; between two keyframes the replay is sped up to fit.
TRACK_ENTITY: copy the shape of an existing keyframe from flashback_get_timeline. Optional "interpolation" on any keyframe sets how the value moves towards the next keyframe: SMOOTH (spline, default), LINEAR, EASE_IN, EASE_OUT, EASE_IN_OUT, HOLD, HERMITE. A camera path needs at least two CAMERA keyframes; the camera is only driven between the first and last one. Preview with flashback_seek + flashback_screenshot.
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": {
"keyframes": "<keyframes>"
},
"name": "flashback_set_keyframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track | No | Track index from flashback_get_timeline. | |
| keyframes | Yes | Keyframe objects as described above. | |
| track_type | No | Alternative to track: CAMERA, FOV, SPEED, TIMELAPSE, TIME_OF_DAY, FREEZE, CAMERA_SHAKE, CAMERA_ORBIT, TRACK_ENTITY. Uses the first track of that type. | |
| clear_existing | No | Remove every keyframe already on the track first (default false). |