Motion SDK

Camera

Perspective or orthographic, a target to look at, and eight move presets.

camera is the default camera: where it is, what it looks at, and its lens. For an edit with cuts, use shots.

A gold knot with the orbit move.
{
  "camera": {
    "position": [0, 1.2, 7],
    "target": [0, 0.5, 0],
    "fov": 38,
    "move": { "preset": "orbit", "easing": "linear" }
  },
  "lighting": { "rig": "three_point" },
  "environment": {
    "background": {
      "radial_gradient": { "inner": "#1b2233", "outer": "#07090f" }
    }
  },
  "materials": { "floor": { "preset": "matte_clay", "color": "#2a2f3a" } },
  "nodes": {
    "floor": {
      "mesh": {
        "geometry": { "plane": { "size": [30, 30] } },
        "material": "floor"
      },
      "transform": { "rotation": [-90, 0, 0] }
    },
    "hero": {
      "transform": { "position": [0, 0.9, 0] },
      "mesh": {
        "geometry": { "torus_knot": { "radius": 0.7, "tube": 0.24 } },
        "material": "preset:gold"
      }
    }
  },
  "timeline": { "duration": 4, "loop": "loop" }
}
A gold knot with the orbit move. apps/docs/examples/camera.json · render it with motion-sdk render apps/docs/examples/camera.json -t 1 -o camera.png

Lens

  • fov: vertical field of view in degrees. 15 to 30 is a long lens, 50+ is wide.
  • projection: perspective, or orthographic with ortho_height for flat 2D and isometric looks.
  • near and far: clip distances.

Moves

move plays a preset over the timeline: orbit, arc, dolly_in, dolly_out, crane_up, dolly_zoom, handheld_drift and reveal_spin. amount scales it, easing times it, and start and duration limit it to part of the timeline.

Animating the Camera

Tracks can target "$camera" with position, look_at and fov. Don't combine camera tracks with shots: shots win, and the validator warns.

API Reference

Camera

The scene camera.

PropertyTypeDefaultDescription
farnumber200Far clip distance. Anything further away isn't drawn.
fovnumber (1 to 179)40Vertical field of view in degrees (perspective only).
moveCameraMove—Optional cinematic move layered on top of the base pose.
nearnumber (≥ 0.0001)0.1Near clip distance. Anything closer isn't drawn.
ortho_heightnumber (≥ 0.001)5Visible height in world units (orthographic only).
position[x, y, z][0,0,6]Camera position in world units.
projectionProjection"perspective"perspective or orthographic.
target[x, y, z][0,0,0]Point the camera looks at.

Projection

ValueDescription
"perspective"
"orthographic"

CameraMove

A parametric camera move evaluated deterministically over time.

PropertyTypeDefaultDescription
amountnumber (0 to 10)1Strength of the move (1 = tuned default). For orbit it is the number of full turns (rounded, at least 1) so loops stay seamless; for the other presets it scales distance/angle.
durationnumber (≥ 0)—Duration in seconds. Defaults to the timeline duration.
easingEasing"ease_in_out_sine"Timing curve of the move over the timeline.
preset*CameraMovePresetrequiredWhich move to play.
startnumber (≥ 0)0Start time in seconds.

CameraMovePreset

Tuned cinematic camera moves.

ValueDescription
"orbit"Full 360 degree orbit around the target (seamless when looping).
"arc"Gentle partial orbit back and forth.
"dolly_in"Move toward the target.
"dolly_out"Move away from the target.
"crane_up"Rise up while keeping the target framed.
"dolly_zoom"Dolly in while widening FOV (vertigo effect).
"handheld_drift"Subtle seeded handheld drift.
"reveal_spin"Fast spin-in reveal that settles on the base pose.