Composition and view
Composition
The composition defines the output coordinate system and timing basis.
{
"format": "motion-protocol",
"formatVersion": 2,
"composition": {
"width": 1920,
"height": 1080,
"fps": 30,
"background": "#101820",
"view": {
"projection": { "kind": "orthographic", "zoom": 1 },
"transform": {
"translate": { "x": 0, "y": 0, "z": 0 },
"rotate": { "x": 0, "y": 0, "z": 0 }
}
}
},
"layers": []
}
View
The view chooses orthographic or perspective projection and supplies a view transform. A normal 2D composition uses orthographic projection and keeps the relevant Z values at zero.
Coordinate units
Frame and transform coordinates are composition/world units. The preview surface may scale them to fit a browser viewport, but the document meaning does not change.
Required distinction
Composition dimensions describe the output. A layer frame describes local geometry. A view describes projection. These are separate responsibilities.