Skip to content

Timeline

The Timeline is the operation list that describes how Scene Graph nodes and value trackers change over time. Each operation has t, and the Runtime deterministically applies operations from 0..currentTime on seek.

opPurpose
createAdd a node to the graph
deleteRemove a node from the graph
setImmediately set a node / camera property
setExprSet a property from an expression that references value trackers
bindExprUpdate a property from a value-tracker expression on seek
bindPathResample a value-tracker parametric path on seek
setValueImmediately set a scalar value tracker
animateInterpolate a node / camera property
animateValueInterpolate a scalar value tracker
effectRepresent Runtime effects such as fadeIn, fadeOut, create, or write
followCameraWrite an animated node center to the camera target after animations
{
"t": 0,
"op": "animate",
"id": "c1",
"path": "transform.x",
"from": 220,
"to": 640,
"duration": 1.5,
"easing": "easeInOut"
}

Operations with the same t are stabilized by the Runtime in this order:

  1. create
  2. setValue
  3. set
  4. effect
  5. animateValue
  6. animate
  7. setExpr
  8. bindExpr / bindPath / followCamera
  9. delete

Operations with the same timestamp and operation type keep source array order.

Numeric values interpolate with easing. Non-numeric values such as colors and strings hold from until completion, then switch to to. Animations with duration <= 0 immediately apply the final value.