Motion SDK

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.

.vscode/settings.json
{
  "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)

PropertyTypeDefaultDescription
audioAudioClip[]—Sound on the timeline: WAV files or generated tones and beat clicks, mixed into MP4 exports. Authoring builds.
cameraCamera{"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.
canvasCanvas{"fps":30,"height":1080,"width":1920}Output size and frame rate for the live player and for exports that don't set their own.
clipsmap of Timeline{}Named clips played by state machine states.
environmentEnvironment{"background":{"solid":"#0b0f1a"},"reflections":"studio"}Background, fog and the reflections environment.
exportsmap of ExportTarget{}Named export targets (x_square, slide, ...).
groundGround—The floor for plant goals: their position keys never go below it. Authoring builds.
lightingLighting{"lights":{},"rig":"studio_soft","rig_intensity":1,"shadows":{"softness":1,"strength":1}}The light rig, custom lights and shadow settings.
materialsmap of Material{}Named materials referenced by nodes ("material": "<name>").
metaMeta—A title and description for the scene. Ignored by the renderer.
nodesmap of Node{}Scene nodes keyed by id. Hierarchy via parent.
pathsmap of Path{}Paths that nodes follow and path instances ride.
physicsPhysics—Gravity and floor for rigid bodies (nodes with body). Physics is authoring-only: the lean player does not parse it.
postPostFx{"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.
prefabsmap of Prefab{}Reusable node templates, placed with {"use": "<prefab>"}.
seedinteger0Seed for every pseudo-random effect (particles, grain, handheld drift). Same seed + same spec = same pixels.
shotsShot[][]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).
signalsmap of Signal{}Cycling signals (traffic lights) for stop lines and show_when.
state_machinesmap of StateMachine{}Interactive state machines keyed by name (all run in parallel).
texturesmap of Texture{}Named images that materials map ("map": {"texture": "<name>"}).
timelineTimeline{"autoplay":true,"duration":5,"loop":"loop","tracks":{}}The main timeline (autoplays; loops by default).
versionstring"0.1"Spec version this document targets.

Color

Color

sRGB hex color: #rgb, #rrggbb or #rrggbbaa.

Type: string

All Types

TypeDescription
AimTurn in the screen plane so `axis` points at `at` (Blender's Damped Track).
AimAxisThe local axis an `aim` points.
AnimValueA keyframe value: number, `[x,y,z]` or hex color.
AttachMove with `to` as if parented to it in the rest pose; the node's own keyed motion still plays on top.
AudioClipOne sound placed on the timeline.
BackgroundScene background.
BeatsThe beat grid music-synced tracks snap to: a steady tempo, or the beat times of a real track (e.g.
BendBend direction of a 2D chain at its joints.
BlendBlend mode of a material.
BodyMakes a node a rigid body.
BodyShapeAn explicit collision shape, in the node's local units (before scale).
BodyTypeHow a body moves.
CameraThe scene camera.
CameraMoveA parametric camera move evaluated deterministically over time.
CameraMovePresetTuned cinematic camera moves.
CanvasLogical canvas used for interactive/web playback.
CaptionA timed caption.
CaptionPosition
CaptionStyle
ClipA rectangular (optionally rounded) 2D clip region.
ClothSimulated cloth sheet lying in the node's local XY plane (like `plane`, rotate `[-90, 0, 0]` to lay flat for a drape or tablecloth).
ClothPinPins vertices of a [`Cloth`] sheet in place, or attaches them to another node so the cloth moves with an animated/kinematic carrier (e.g.
ClothPinEdgeEdge or corner shorthand for pinning vertices of a [`Cloth`] sheet.
ClothPresetMaterial preset for a [`Cloth`] node: tuned defaults for stretch, bending, mass, damping and wind drag.
ClothWindWind field acting on a [`Cloth`] sheet via aerodynamic drag and lift.
CloudsProcedural cloud layers, seeded by the scene seed.
ColorsRGB hex color: #rgb, #rrggbb or #rrggbbaa.
ColorManagement
ConstraintOne constraint on a node; a node's `constrain` list applies in order, after its parents' and after any IK that moves it.
CounterA number counting from `from` to `to`.
CurveInterpolation between keyframes.
DofDepth of field.
EasingAn easing curve.
EmitterWhere particles spawn.
EnvironmentBackground, fog and image-based lighting.
EnvironmentMapBuilt-in environment maps (no external assets, fully deterministic).
ExclusionA circle on the ground (`[x, z]` in the terrain's local space).
ExportFormat
ExportPresetTuned output presets.
ExportTargetOne output to render.
FlatAreaA flat region in a [`Terrain`].
FloodSimulated 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`).
FloodEdgesThe border of a [`Flood`].
FloodFillA box of standing water at the start of a [`Flood`], in the node's local x/z.
FloodSourceWater pouring into a [`Flood`] over a disc.
FogSquared-exponential distance fog that starts at the camera's target distance: the subject stays crisp while the background and horizon fade into `color`.
FollowRide a path.
FontBundled, license-clean fonts (deterministic glyph output).
FramingAspect-ratio adaptation.
GeometryBuilt-in procedural geometry.
GradeA colour grade, applied after tone mapping.
GroundThe floor for planted goals: `plant` goals' position keys never go below `y`.
HorizonGlowEmissive light hugging the horizon, brightest at `azimuth`.
HtmlAn HTML + CSS layout expanded into 3D `rounded_box` and `text` nodes.
IkInverse kinematics: turn the bones above this node (the chain's end, e.g.
InstanceOne instance's transform (and optional tint).
InstancesCopies of a mesh, drawn with a single instanced draw call.
JointArticulated rigid-body joint constraint (XPBD) connecting this node's `body` to `parent`'s `body`.
JointCoupleTendon coupling: drives this joint's target angle proportionally to another joint's current flexion angle (e.g.
JointKindType of articulated constraint connecting two rigid bodies.
KeepWhat `attach` keeps from the rest pose.
KeyframeA keyframe: a value at time `t` (seconds).
LightA single light.
LightRigCurated light setups tuned to look good with the material presets.
LightingScene lighting: start from a `rig` and add or override named `lights`.
LimitKeep the node's in-plane rotation relative to its parent within `rotation` (applied after IK, so a solved knee can't bend backwards).
LoopMode
MaterialA physically based material.
MaterialPresetCurated, tuned material looks.
MeshA primitive mesh with a material.
MetaHuman-facing metadata.
ModelTriangles from a glTF file, with its node transforms applied.
ModelAnimationWhich glTF clip a model plays, and how fast.
MotionBlurMotion blur by averaging subframes across the shutter interval.
NodeA node in the scene graph.
OutlineA silhouette outline (inverted hull), in world units.
ParticlePreset
ParticlesA deterministic (seeded) GPU particle system.
PathA path shape.
PathEndWhat a follower does at the end of an open path.
PathInstancesCopies spread along a path, each riding it (crowds, traffic).
PhysicsWorld settings for every `body`.
PixelArtPixel-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.
PostFxPost-processing.
PrefabA reusable group of nodes with parameters.
Projection
PropertyAnimatable properties.
PropertySetPin a property of a node (or `$camera`) to a value.
PulseA value that kicks to `to` on beats and falls back to `from`.
Quality
RaysLight shafts (god rays) streaming from a point on screen through the bright parts of the frame.
RepeatCopies of a node or prefab placement.
SafeAreaFractions of the frame (0..0.5) kept clear on each side, e.g.
SceneDeclarative 3D scene + timeline + state machines + export targets for agents (Motion SDK spec v0.1)
ScrambleRandom characters resolving into `content`.
ScrubSourceInput that scrubs a clip (0..1 maps to the clip's 0..duration).
ShadingHow a material responds to light.
ShadowsShadow softness and darkness.
ShapeA 2D vector shape (see the module docs).
ShatterBreak a box into a grid of chunks that burst apart at `start` and fall as rigid bodies (a wall smashed, a crate blown open).
ShotOne camera setup in the edit.
ShotCameraCamera settings for a shot.
ShotTransitionA full-frame transition over a cut.
ShowWhenShow a node only while a signal is in one of `states` (traffic light lamps).
SignalA cycling signal such as a traffic light.
SignalPhaseOne step of a signal cycle.
SignalStateWhat a signal currently shows.
SkinA procedural rig.
SkyProcedural sky.
SoftPresetMaterial preset for a [`SoftTissue`] pad (PhysHand-style skin-flesh-bone XPBD).
SoftTissuePhysHand-style layered skin–flesh–bone XPBD soft tissue pad attached to a node (typically a phalanx rigid body or kinematic bone).
SplatLampA point light baked into splat colours.
SplatLightLight baked into splat colours.
SplatMeshA glTF/GLB model whose surface is sampled into splats.
SplatPartLook of one part of a [`SplatMesh`].
SplatSdfA signed-distance primitive, centred on the shape's position.
SplatShapeOne signed-distance shape of a splat cloud.
SplatsA node's cloud of Gaussian splats.
SpringDamped spring parameters.
State
StateMachine
StopA stop line on a path, honored while its signal is not `go`.
StyliseHand-drawn look applied to the whole frame after tone mapping.
SunThe sun on the sky dome.
SurfaceProcedural surface detail on top of a PBR material.
SurfacePatternBuilt-in procedural patterns.
SvgAn SVG drawing expanded into 2D shape nodes (see the module docs).
SvgBoneHow one SVG part moves (see [`Svg::bones`]).
SwapWhole strings shown one after another.
TerrainA noise heightfield on the XZ plane, centred on the node.
TerrainScatterSeeded scatter on a terrain node (see [`Instances::OnTerrain`]).
TextExtrudable 3D (or flat) text using bundled fonts.
TextAlign
TextAnimationPer-glyph entrance animations.
TextAnimationPreset
TextDynamicHow a text node's content changes over time (overrides `content` while it plays; `content` is still the layout used for sizing).
TextStrokeA solid stroke around flat text.
TextureAn image the scene loads once and materials map by name.
TextureMapWhere a texture lands on a surface: `uv' = rotate(uv * repeat) + offset`.
TimelineA timeline of keyframed property tracks.
ToneMapping
TrackAnimates one property of one target over time.
TransformPosition, rotation (Euler XYZ, degrees) and scale.
Transition
TriggerWhat fires a transition.
WaterWaves and reflections for a water (or wet, mirror-like) surface.
WiggleNoise added to a track's value.