Scene
The top-level scene document and an index of every type in the schema.
A scene is one JSON object. Every top-level field is optional. An empty object {} is a valid, empty scene. Unknown keys are rejected, including $schema.
The full JSON Schema is schema/scene.schema.json. It's generated from the Rust types and a test keeps it current. Point your editor at it by file pattern instead of a $schema key.
{
"json.schemas": [
{ "fileMatch": ["*.scene.json"], "url": "./schema/scene.schema.json" }
]
}Scene
Declarative 3D scene + timeline + state machines + export targets for agents (Motion SDK spec v0.1)
| Property | Type | Default | Description |
|---|---|---|---|
| audio | AudioClip[] | — | Sound on the timeline: WAV files or generated tones and beat clicks, mixed into MP4 exports. Authoring builds. |
| camera | Camera | {"far":200,"fov":40,"near":0.1,"ortho_height":5,"position":[0,0,6],"projection":"perspective","target":[0,0,0]} | The default camera: where it is, what it looks at, its lens and an optional move preset. Shots override it. |
| canvas | Canvas | {"fps":30,"height":1080,"width":1920} | Output size and frame rate for the live player and for exports that don't set their own. |
| clips | map of Timeline | {} | Named clips played by state machine states. |
| environment | Environment | {"background":{"solid":"#0b0f1a"},"reflections":"studio"} | Background, fog and the reflections environment. |
| exports | map of ExportTarget | {} | Named export targets (x_square, slide, ...). |
| ground | Ground | — | The floor for plant goals: their position keys never go below it. Authoring builds. |
| lighting | Lighting | {"lights":{},"rig":"studio_soft","rig_intensity":1,"shadows":{"softness":1,"strength":1}} | The light rig, custom lights and shadow settings. |
| materials | map of Material | {} | Named materials referenced by nodes ("material": "<name>"). |
| meta | Meta | — | A title and description for the scene. Ignored by the renderer. |
| nodes | map of Node | {} | Scene nodes keyed by id. Hierarchy via parent. |
| paths | map of Path | {} | Paths that nodes follow and path instances ride. |
| physics | Physics | — | Gravity and floor for rigid bodies (nodes with body). Physics is authoring-only: the lean player does not parse it. |
| post | PostFx | {"bloom":0.4,"chromatic_aberration":0,"color_management":"linear","grain":0,"msaa":4,"tone_mapping":"neutral","vignette":0.2} | Post effects: bloom, tone mapping, colour grade, depth of field, grain and more. |
| prefabs | map of Prefab | {} | Reusable node templates, placed with {"use": "<prefab>"}. |
| seed | integer | 0 | Seed for every pseudo-random effect (particles, grain, handheld drift). Same seed + same spec = same pixels. |
| shots | Shot[] | [] | The edit: camera setups played back to back with hard cuts. When set, shots drive the camera instead of camera (whose values fill anything a shot leaves out). |
| signals | map of Signal | {} | Cycling signals (traffic lights) for stop lines and show_when. |
| state_machines | map of StateMachine | {} | Interactive state machines keyed by name (all run in parallel). |
| textures | map of Texture | {} | Named images that materials map ("map": {"texture": "<name>"}). |
| timeline | Timeline | {"autoplay":true,"duration":5,"loop":"loop","tracks":{}} | The main timeline (autoplays; loops by default). |
| version | string | "0.1" | Spec version this document targets. |
Color
Color
sRGB hex color: #rgb, #rrggbb or #rrggbbaa.
Type: string
All Types
| Type | Description |
|---|---|
| Aim | Turn in the screen plane so `axis` points at `at` (Blender's Damped Track). |
| AimAxis | The local axis an `aim` points. |
| AnimValue | A keyframe value: number, `[x,y,z]` or hex color. |
| Attach | Move with `to` as if parented to it in the rest pose; the node's own keyed motion still plays on top. |
| AudioClip | One sound placed on the timeline. |
| Background | Scene background. |
| Beats | The beat grid music-synced tracks snap to: a steady tempo, or the beat times of a real track (e.g. |
| Bend | Bend direction of a 2D chain at its joints. |
| Blend | Blend mode of a material. |
| Body | Makes a node a rigid body. |
| BodyShape | An explicit collision shape, in the node's local units (before scale). |
| BodyType | How a body moves. |
| Camera | The scene camera. |
| CameraMove | A parametric camera move evaluated deterministically over time. |
| CameraMovePreset | Tuned cinematic camera moves. |
| Canvas | Logical canvas used for interactive/web playback. |
| Caption | A timed caption. |
| CaptionPosition | |
| CaptionStyle | |
| Clip | A rectangular (optionally rounded) 2D clip region. |
| Cloth | Simulated cloth sheet lying in the node's local XY plane (like `plane`, rotate `[-90, 0, 0]` to lay flat for a drape or tablecloth). |
| ClothPin | Pins vertices of a [`Cloth`] sheet in place, or attaches them to another node so the cloth moves with an animated/kinematic carrier (e.g. |
| ClothPinEdge | Edge or corner shorthand for pinning vertices of a [`Cloth`] sheet. |
| ClothPreset | Material preset for a [`Cloth`] node: tuned defaults for stretch, bending, mass, damping and wind drag. |
| ClothWind | Wind field acting on a [`Cloth`] sheet via aerodynamic drag and lift. |
| Clouds | Procedural cloud layers, seeded by the scene seed. |
| Color | sRGB hex color: #rgb, #rrggbb or #rrggbbaa. |
| ColorManagement | |
| Constraint | One constraint on a node; a node's `constrain` list applies in order, after its parents' and after any IK that moves it. |
| Counter | A number counting from `from` to `to`. |
| Curve | Interpolation between keyframes. |
| Dof | Depth of field. |
| Easing | An easing curve. |
| Emitter | Where particles spawn. |
| Environment | Background, fog and image-based lighting. |
| EnvironmentMap | Built-in environment maps (no external assets, fully deterministic). |
| Exclusion | A circle on the ground (`[x, z]` in the terrain's local space). |
| ExportFormat | |
| ExportPreset | Tuned output presets. |
| ExportTarget | One output to render. |
| FlatArea | A flat region in a [`Terrain`]. |
| Flood | Simulated water over an area centred on the node and aligned with world x and z: it pours in from `sources`, spills from `fill` blocks, flows downhill around static bodies and over terrain, and floats dynamic bodies (see `buoyancy`). |
| FloodEdges | The border of a [`Flood`]. |
| FloodFill | A box of standing water at the start of a [`Flood`], in the node's local x/z. |
| FloodSource | Water pouring into a [`Flood`] over a disc. |
| Fog | Squared-exponential distance fog that starts at the camera's target distance: the subject stays crisp while the background and horizon fade into `color`. |
| Follow | Ride a path. |
| Font | Bundled, license-clean fonts (deterministic glyph output). |
| Framing | Aspect-ratio adaptation. |
| Geometry | Built-in procedural geometry. |
| Grade | A colour grade, applied after tone mapping. |
| Ground | The floor for planted goals: `plant` goals' position keys never go below `y`. |
| HorizonGlow | Emissive light hugging the horizon, brightest at `azimuth`. |
| Html | An HTML + CSS layout expanded into 3D `rounded_box` and `text` nodes. |
| Ik | Inverse kinematics: turn the bones above this node (the chain's end, e.g. |
| Instance | One instance's transform (and optional tint). |
| Instances | Copies of a mesh, drawn with a single instanced draw call. |
| Joint | Articulated rigid-body joint constraint (XPBD) connecting this node's `body` to `parent`'s `body`. |
| JointCouple | Tendon coupling: drives this joint's target angle proportionally to another joint's current flexion angle (e.g. |
| JointKind | Type of articulated constraint connecting two rigid bodies. |
| Keep | What `attach` keeps from the rest pose. |
| Keyframe | A keyframe: a value at time `t` (seconds). |
| Light | A single light. |
| LightRig | Curated light setups tuned to look good with the material presets. |
| Lighting | Scene lighting: start from a `rig` and add or override named `lights`. |
| Limit | Keep the node's in-plane rotation relative to its parent within `rotation` (applied after IK, so a solved knee can't bend backwards). |
| LoopMode | |
| Material | A physically based material. |
| MaterialPreset | Curated, tuned material looks. |
| Mesh | A primitive mesh with a material. |
| Meta | Human-facing metadata. |
| Model | Triangles from a glTF file, with its node transforms applied. |
| ModelAnimation | Which glTF clip a model plays, and how fast. |
| MotionBlur | Motion blur by averaging subframes across the shutter interval. |
| Node | A node in the scene graph. |
| Outline | A silhouette outline (inverted hull), in world units. |
| ParticlePreset | |
| Particles | A deterministic (seeded) GPU particle system. |
| Path | A path shape. |
| PathEnd | What a follower does at the end of an open path. |
| PathInstances | Copies spread along a path, each riding it (crowds, traffic). |
| Physics | World settings for every `body`. |
| PixelArt | Pixel-art look: the scene is drawn at a low resolution (`size` screen pixels per art pixel) and every art pixel is drawn as a crisp square. |
| PostFx | Post-processing. |
| Prefab | A reusable group of nodes with parameters. |
| Projection | |
| Property | Animatable properties. |
| PropertySet | Pin a property of a node (or `$camera`) to a value. |
| Pulse | A value that kicks to `to` on beats and falls back to `from`. |
| Quality | |
| Rays | Light shafts (god rays) streaming from a point on screen through the bright parts of the frame. |
| Repeat | Copies of a node or prefab placement. |
| SafeArea | Fractions of the frame (0..0.5) kept clear on each side, e.g. |
| Scene | Declarative 3D scene + timeline + state machines + export targets for agents (Motion SDK spec v0.1) |
| Scramble | Random characters resolving into `content`. |
| ScrubSource | Input that scrubs a clip (0..1 maps to the clip's 0..duration). |
| Shading | How a material responds to light. |
| Shadows | Shadow softness and darkness. |
| Shape | A 2D vector shape (see the module docs). |
| Shatter | Break a box into a grid of chunks that burst apart at `start` and fall as rigid bodies (a wall smashed, a crate blown open). |
| Shot | One camera setup in the edit. |
| ShotCamera | Camera settings for a shot. |
| ShotTransition | A full-frame transition over a cut. |
| ShowWhen | Show a node only while a signal is in one of `states` (traffic light lamps). |
| Signal | A cycling signal such as a traffic light. |
| SignalPhase | One step of a signal cycle. |
| SignalState | What a signal currently shows. |
| Skin | A procedural rig. |
| Sky | Procedural sky. |
| SoftPreset | Material preset for a [`SoftTissue`] pad (PhysHand-style skin-flesh-bone XPBD). |
| SoftTissue | PhysHand-style layered skin–flesh–bone XPBD soft tissue pad attached to a node (typically a phalanx rigid body or kinematic bone). |
| SplatLamp | A point light baked into splat colours. |
| SplatLight | Light baked into splat colours. |
| SplatMesh | A glTF/GLB model whose surface is sampled into splats. |
| SplatPart | Look of one part of a [`SplatMesh`]. |
| SplatSdf | A signed-distance primitive, centred on the shape's position. |
| SplatShape | One signed-distance shape of a splat cloud. |
| Splats | A node's cloud of Gaussian splats. |
| Spring | Damped spring parameters. |
| State | |
| StateMachine | |
| Stop | A stop line on a path, honored while its signal is not `go`. |
| Stylise | Hand-drawn look applied to the whole frame after tone mapping. |
| Sun | The sun on the sky dome. |
| Surface | Procedural surface detail on top of a PBR material. |
| SurfacePattern | Built-in procedural patterns. |
| Svg | An SVG drawing expanded into 2D shape nodes (see the module docs). |
| SvgBone | How one SVG part moves (see [`Svg::bones`]). |
| Swap | Whole strings shown one after another. |
| Terrain | A noise heightfield on the XZ plane, centred on the node. |
| TerrainScatter | Seeded scatter on a terrain node (see [`Instances::OnTerrain`]). |
| Text | Extrudable 3D (or flat) text using bundled fonts. |
| TextAlign | |
| TextAnimation | Per-glyph entrance animations. |
| TextAnimationPreset | |
| TextDynamic | How a text node's content changes over time (overrides `content` while it plays; `content` is still the layout used for sizing). |
| TextStroke | A solid stroke around flat text. |
| Texture | An image the scene loads once and materials map by name. |
| TextureMap | Where a texture lands on a surface: `uv' = rotate(uv * repeat) + offset`. |
| Timeline | A timeline of keyframed property tracks. |
| ToneMapping | |
| Track | Animates one property of one target over time. |
| Transform | Position, rotation (Euler XYZ, degrees) and scale. |
| Transition | |
| Trigger | What fires a transition. |
| Water | Waves and reflections for a water (or wet, mirror-like) surface. |
| Wiggle | Noise added to a track's value. |