Camera Moves
A shot is a start pose, a move and a length: /film?bot=Cam&x=..&y=..&z=..&yaw=..&pitch=..&move=orbit&radius=8°rees=120&ms=8000. This sheet lists every parameter /film takes. The same parameters work for every shot inside /shoot, /sequence and /job/submit.
Where the camera starts
| Form | Parameters |
|---|---|
| One pose and a move | x, y, z, yaw (0), pitch (0), then move |
| From one pose to another | x0, y0, z0, yaw0, pitch0 and x1, y1, z1, yaw1, pitch1. The camera goes in a line from the first to the second, the yaw the short way round |
| A path | path=x,y,z[,yaw,pitch];x,y,z[,yaw,pitch];..., two points or more. The camera follows a Catmull-Rom curve through them. Without x the first point is the start |
| Keyframes | kf, only with the mod drive, see Keyframes |
lookX, lookY, lookZ keep the camera aimed at that point the whole shot, whatever the move does. lookEntity aims at an entity or player by name and follows it.
Moves
move | What the camera does | Uses |
|---|---|---|
static (default) | Holds the pose | |
push, pull | Forward or back along where it looks | distance (3) |
truck, truckl | Right or left | distance |
rise, fall | Up or down | distance |
orbit | Circles a centre radius ahead of the start, looking at it | radius (5), degrees (90) |
pan | Turns on the spot | degrees |
An unknown name fails with unknown move 'X'.
Named moves
These names work on every drive. With the mod drive they become keyframes of their own, on the other drives they run as the base move in brackets.
move | Mod drive | Other drives |
|---|---|---|
dolly, dolly_zoom, dutch_push, establish_descend | A push aimed at the subject; establish_descend also sinks 0.6 x distance | push |
reveal | A pull aimed at the subject | pull |
orbit_rise, crane_orbit | An orbit that rises by distance | orbit |
crane_up, boom, pedestal | Straight up, pedestal with fixed angles | rise |
crane_down | Straight down | fall |
parallax | A truck aimed at the subject | truck |
whip_pan | A turn by degrees | pan |
flythrough | Follows path | static |
dolly_zoom only changes the fov when fov0 and fov1 are given.
Timing and feel
| Parameter | Default | Meaning |
|---|---|---|
ms | 6000 | Length of the move, 100 to 600000 |
fps | filmFps (60) | Recording rate, 1 to 120 |
hz | the fps | Camera updates a second, 1 to 240. Not used by sendinput, which runs at sendinputHz |
scale | 1 | Size of the recorded frames against the window, above 0.05 |
ramp | smooth | Easing: linear (or none, 0), in, out, smooth, cine (a softer start and stop) |
ease | on | ease=0 makes the move linear |
slow, slowAt | 0, 1 | Slows the camera down around slowAt (0 to 1 of the shot), slow up to 0.95 |
settle | 0 | A small overshoot in the last quarter that lands back on the end pose |
handheld | off | A slow sway on position, yaw and pitch. A number, or on for filmHandheld (0.03) |
ramp, slow, settle, handheld and hz shape the cine, keys and mod drives; sendinput ignores them.
Staging
| Parameter | Default | Meaning |
|---|---|---|
gamemode | spectator | Typed by the bot before the shot |
time | keep | day (1000), gold (6000), night (18000) or a tick |
timeRamp | from,to in ticks, the time moves while the shot runs | |
weather | keep | clear, rain or thunder |
particles | leaves, fireflies, ash, snow or embers, sent around the camera every 150 ms | |
hud | hidden | show (or on, 1, true) keeps the hud |
nametags | follows hud | With the mod drive, show keeps nametags |
Drive, recorder and file
| Parameter | Default | Meaning |
|---|---|---|
drive | filmDrive (cine) | cine, keys, sendinput or mod, see Drives. Anything else is an error |
recorder | filmRecorder (internal) | internal (ffmpeg) or obs, which needs obsScript. Anything else is an error |
out | The clip's path, instead of a name in the film folder | |
keys, vx, vy | For sendinput: keys to hold (w, a, s, d, space, shift) and mouse speed in pixels a second |
Keyframes
The mod drive takes a full camera track. Each keyframe has x, y, z and optional t (seconds), yaw, pitch, roll, fov and ease.
curl -H "X-ITT-Token: $TOKEN" "localhost:8767/film?bot=Cam&drive=mod&ms=8000&kf=0,10,72,10,-90,5;4,18,74,12,-110,8,0,60;8,24,80,20,-130,15,4,50"kf takes that compact form (t,x,y,z,yaw,pitch[,roll[,fov[,ease]]] per leg, ; between legs), a JSON array, or {"keyframes":[...]}. A JSON array as the request body works too.
roll holds a tilt for the whole shot, dutch ramps a tilt from 0 to its value, fov sets the fov and fov0, fov1 ramp it. Keyframes win over path, path wins over a named move.
Presets
preset=<name> takes a shot from the JSON file in filmPresetsFile. Parameters in the call override the preset's, and a waypoints array becomes path.
{
"flythrough": {
"move": "orbit", "ms": 8000, "time": "gold", "weather": "rain", "drive": "cine",
"waypoints": [[10, 70, 10, -90, 0], [20, 72, 10, -90, 0]],
"lookX": 15, "lookY": 71, "lookZ": 12
}
}Errors: no presets file configured, could not read presets file: ..., no preset named X.
Older route
/cine is the first version of a camera move: x0 to z1, yaw0, pitch0, yaw1, pitch1, ms (4000), hz (30, at most 60) and ease, a straight line with no recording. Unlike /film it needs no API token.