Camera Moves

4min read
Sheet 40 of 47 · Filming

A shot is a start pose, a move and a length: /film?bot=Cam&x=..&y=..&z=..&yaw=..&pitch=..&move=orbit&radius=8&degrees=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

FormParameters
One pose and a movex, y, z, yaw (0), pitch (0), then move
From one pose to anotherx0, 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 pathpath=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
Keyframeskf, 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

moveWhat the camera doesUses
static (default)Holds the pose
push, pullForward or back along where it looksdistance (3)
truck, trucklRight or leftdistance
rise, fallUp or downdistance
orbitCircles a centre radius ahead of the start, looking at itradius (5), degrees (90)
panTurns on the spotdegrees

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.

moveMod driveOther drives
dolly, dolly_zoom, dutch_push, establish_descendA push aimed at the subject; establish_descend also sinks 0.6 x distancepush
revealA pull aimed at the subjectpull
orbit_rise, crane_orbitAn orbit that rises by distanceorbit
crane_up, boom, pedestalStraight up, pedestal with fixed anglesrise
crane_downStraight downfall
parallaxA truck aimed at the subjecttruck
whip_panA turn by degreespan
flythroughFollows pathstatic

dolly_zoom only changes the fov when fov0 and fov1 are given.

Timing and feel

ParameterDefaultMeaning
ms6000Length of the move, 100 to 600000
fpsfilmFps (60)Recording rate, 1 to 120
hzthe fpsCamera updates a second, 1 to 240. Not used by sendinput, which runs at sendinputHz
scale1Size of the recorded frames against the window, above 0.05
rampsmoothEasing: linear (or none, 0), in, out, smooth, cine (a softer start and stop)
easeonease=0 makes the move linear
slow, slowAt0, 1Slows the camera down around slowAt (0 to 1 of the shot), slow up to 0.95
settle0A small overshoot in the last quarter that lands back on the end pose
handheldoffA 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

ParameterDefaultMeaning
gamemodespectatorTyped by the bot before the shot
timekeepday (1000), gold (6000), night (18000) or a tick
timeRampfrom,to in ticks, the time moves while the shot runs
weatherkeepclear, rain or thunder
particlesleaves, fireflies, ash, snow or embers, sent around the camera every 150 ms
hudhiddenshow (or on, 1, true) keeps the hud
nametagsfollows hudWith the mod drive, show keeps nametags

Drive, recorder and file

ParameterDefaultMeaning
drivefilmDrive (cine)cine, keys, sendinput or mod, see Drives. Anything else is an error
recorderfilmRecorder (internal)internal (ffmpeg) or obs, which needs obsScript. Anything else is an error
outThe clip's path, instead of a name in the film folder
keys, vx, vyFor 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.

Loading the index

Enter openUp Down moveEsc close