Motion SDK

The Scene Document

The few shapes every part of the spec follows, so an agent writes it right the first time.

A scene is one JSON document. Its shapes are small and predictable on purpose: a model should be able to write any part of it correctly in few tokens.

Everything Is Optional

Every field has a default, so {} is a valid scene and every partial scene renders. Write only what differs from the defaults.

Maps Keyed by Id

Nodes, materials, textures, tracks, clips, states, paths, signals, prefabs and exports are maps keyed by id, never arrays. Ids use [A-Za-z0-9_-].

{
  "materials": { "paint": { "preset": "glossy_plastic", "color": "#f2c230" } },
  "nodes": {
    "car": { "mesh": { "geometry": { "box": { "size": [2, 0.9, 4.2] } }, "material": "paint" } },
    "cab": { "parent": "car", "transform": { "position": [0, 0.8, 0.3] } }
  }
}

Ids make patches stable: /nodes/car/transform/position means the same thing however many nodes you add, and the renderer updates one instance slot instead of rebuilding the scene.

Hierarchy with parent

A node's parent is another node's id. Transforms are relative to the parent. A node with no mesh, text or particles is a group. A node has at most one of those three.

Single-Key Variants

When a value can take several forms, it's an object with one key naming the form:

{ "sphere": { "radius": 1 } }
{ "point": { "position": [0, 3, 0], "intensity": 40 } }
{ "click": { "node": "button" } }

Forms with no settings are plain strings: "transparent", "clip_end", "linear".

Units

QuantityUnit
Positions and sizesWorld units. Treat them as metres.
RotationsEuler degrees [x, y, z], applied X, then Y, then Z
TimesSeconds
ColourssRGB hex: #rgb, #rrggbb or #rrggbbaa
Field of viewVertical degrees, or focal_length in mm on shots

The camera looks down -z by default. +y is up. Imported glTF models face +z; nodes that follow a path face along -z.

Top-Level Keys

KeyWhat it holds
version, meta, seedSpec version, title and description, and the seed for every random choice
canvasSize and fps
camera, shotsThe default camera, or a shot list with cuts
environment, lighting, postBackground and fog, lights and shadows, post effects
materials, texturesNamed materials and images
nodes, prefabsThe scene graph, and templates for repeated parts
paths, signalsCurves that nodes follow, and cycling signals like traffic lights
timeline, clips, state_machinesAnimation, and interactive states
physicsWorld settings for rigid bodies
exportsNamed export targets

Every key and property is listed in the Scene reference.