kinescript

Time is a reference.

A layer can start when another one ends: "at": "intro.out+0.2". Make the intro two seconds longer and everything cued after it moves, in a one-line diff. Cycles and missing ids are reported before anything renders.

Cued by reference

Four layers and one number. intro lasts 2.5 seconds; the title starts 0.2 s after it ends, the bar 0.4 s after the title comes in, and the closing line when the title leaves. None of the later layers names a time of its own.

0.0 s
  1. intro
  2. title
  3. bar
  4. cta
cues.json1920 x 1080, 8.7 s
{  "canvas": {"w": 1920, "h": 1080, "fps": 30, "bg": "#0a0c10"},  "layers": [    {"id": "intro", "type": "text", "text": "October update", "x": "50%", "y": "50%", "size": 120, "weight": 700,     "dur": 2.5, "enter": "snap", "exit": "fade"},    {"id": "title", "type": "text", "text": "Orders doubled", "x": "50%", "y": "30%", "size": 110, "weight": 700,     "at": "intro.out+0.2", "dur": 3.5, "enter": {"name": "left", "dist": 28, "dur": 0.32}, "exit": "fade"},    {"id": "bar", "type": "rect", "x": "50%", "y": "62%", "w": {"from": 0, "to": 900, "dur": 0.8}, "h": 60,     "fill": "$accent", "at": "title.in+0.4", "until": "title.out", "exit": "fade"},    {"id": "cta", "type": "text", "text": "example.com/q4", "font": "IBM Plex Mono", "x": "50%", "y": "50%",     "size": 72, "at": "title.out", "dur": 2.5, "enter": "snap"}  ]}

One line changed

Give the intro 4.5 seconds instead of 2.5. The diff is one line, and every layer cued after it moves by two seconds.

demos/cues.jsonone line changed
 {   "canvas": {"w": 1920, "h": 1080, "fps": 30, "bg": "#0a0c10"},   "layers": [     {"id": "intro", "type": "text", "text": "October update", "x": "50%", "y": "50%", "size": 120, "weight": 700,-     "dur": 2.5, "enter": "snap", "exit": "fade"},+     "dur": 4.5, "enter": "snap", "exit": "fade"},     {"id": "title", "type": "text", "text": "Orders doubled", "x": "50%", "y": "30%", "size": 110, "weight": 700,      "at": "intro.out+0.2", "dur": 3.5, "enter": {"name": "left", "dist": 28, "dur": 0.32}, "exit": "fade"},     {"id": "bar", "type": "rect", "x": "50%", "y": "62%", "w": {"from": 0, "to": 900, "dur": 0.8}, "h": 60,      "fill": "$accent", "at": "title.in+0.4", "until": "title.out", "exit": "fade"},     {"id": "cta", "type": "text", "text": "example.com/q4", "font": "IBM Plex Mono", "x": "50%", "y": "50%",      "size": 72, "at": "title.out", "dur": 2.5, "enter": "snap"}   ] }

Before

  1. intro
  2. title
  3. bar
  4. cta

After

  1. intro
  2. title
  3. bar
  4. cta
Ends and starts
"at": "intro.out+0.2" starts a layer 0.2 s after intro ends, "title.in+0.4" 0.4 s after the title comes in, and "until": "title.out" ends one with it.
Markers
Top-level "markers": {"drop": 12.5} names a time once, and "at": "drop" starts a layer on it, so a beat moves in one place.
Words
"at": "vo:pic" starts a layer on a word of a voice-over, from the word times kine voice writes. See Sound.
Checked first
A cue to an id that does not exist, or a cycle of layers waiting on each other, is reported by kine check before anything renders.