Timeline scripts and Event scripts

Scripts

Build Timeline scripts for ordered camera, light, and GPIO actions, or Event scripts that respond to Camera Server events.

Events and conditions

An event node matches one event from Camera Server. The picker's event catalog lists the events and fields available to Event scripts.

Event catalog

  • Warmup start: groupId, zoneName
  • Countdown start: groupId, durationMs, zoneName
  • Countdown beat: groupId, remaining, total, zoneName
  • Countdown end: groupId, total, durationMs, zoneName
  • Capture start / Capture end: requestId, groupId, cameraCount, durationMs, estimated, zoneName
  • Files transferred: datasetName, index, frameCount, complete
  • Processing finished: datasetName, requestId, taskCount, lane
  • Dataset ready: datasetName, index, frameCount, complete
  • Capture cancellation: groupId, reason, zoneName

Trigger start is hidden from new event selections. Existing nodes bound to it keep working and retain their label.

Capture dispatch, Capture pipeline end, Transfer end, Dataset creation, Countdown cancel, and the former dataset.available event are no longer supported script events. Old JSONC or history versions containing those events must be edited before they can be saved or restored. Use Capture start/end for capture timing, Files transferred for received files, Dataset ready for final success, and Capture cancellation for cancellation.

Capture start and end

Capture start (exposure.started) and Capture end (exposure.ended) describe the estimated capture window across all targeted, enabled cameras. Start is the earliest planned exposure or recording start; End is the latest planned finish. They do not wait for file downloads. Each event carries estimated: true, a request ID, and the overall window's durationMs. The event IDs are unchanged from their previous Exposure start/end labels, so existing script bindings keep working.

Camera Server reads the targeted cameras' active shutter settings and each group's configured video or timed-burst duration. It uses the trigger command planner's offsets for interval and jump-freeze captures, including repeated shots. A timed burst includes the final frame's shutter duration. Settings and the camera-zone name are captured for the shot, not reread when the timer fires.

For ordinary captures, the server adds 240 ms to the planned window, with a minimum window of 1,200 ms. This is the conservative estimate previously used by the trigger button. Long exposures are not capped at 30 seconds. Coordinated and prescheduled video keep their acknowledged recording deadlines without this padding.

The trigger button's bead, Active Capture metronome and capture-end sound cue now leave the capture phase on the same server Capture-end event. Their countdown and capture-start behavior is unchanged. The button still has a separate 950 ms processing phase. File announcements cannot end Active Capture audio early. The sound settings' sub-second tick suppression uses the full planned capture window, including a timed burst, rather than one burst frame's shutter speed.

Auto/Bulb, unparseable shutter settings, and frame-count-only bursts have no predictable end. If any targeted camera has an unknown window, neither exposure event fires; Camera Server logs a warning. Aborting or a reported camera failure cancels pending exposure events. Repeat capture produces a separate event pair per shot. If the host transfer finishes before an estimated timer, pending exposure events are dropped so a late Glitch action cannot replace the dataset's Full white action.

When transfer completes before the estimate, the same pipeline-completion notification ends the bead's capture phase and Active Capture audio. For an unknown window they wait for pipeline completion instead of guessing an exposure end. A missing completion notification eventually reports a timing error; it does not synthesize a successful Capture-end event. Camera-only captures with unknown duration have no host pipeline completion to fall back on.

These are planned timing cues, not camera SDK confirmations. Network delays, autofocus, shutter lag, and adapter preparation can move physical exposure outside the estimated window, even with the conservative margin. The shared timing does not change trigger commands, synchronization, countdown scheduling, or node telemetry traffic. Do not use these events for precision flash synchronization or guaranteed darkness during exposure.

For an animation during transfer, connect Capture end to Glitch's Start input, then Files transferred to Full white's Start input. Use Dataset ready instead if white should wait for processing too. A short or cached transfer can leave little or no visible Glitch time; use a Timeline with an explicit duration if the animation must remain visible.

Capture and dataset timing

Files transferred (files.transferred) follows transfer finalization. It waits for pending host writes and any expected RAW transfer, even if the dataset appears in the UI and processing starts earlier from its JPG files. It does not mean downstream image processing is finished.

Dataset ready (dataset.ready) is the final success event. It fires once after files are transferred and the dataset's required Fast lane processing and auto-run outputs have completed successfully. With no processing, it follows Files transferred directly. If processing finishes before RAW transfer, it still waits for Files transferred.

Event order depends on when processing finishes:

  • Without processing: Files transferred -> Dataset ready
  • With processing after transfer: Files transferred -> Processing finished -> Dataset ready
  • With processing before transfer: Processing finished -> Files transferred -> Dataset ready

Failed, cancelled, interrupted, or deleted unfinished Fast lane tasks block Dataset ready; a successful retry can unblock it. The completion marker is saved in dataset metadata so later updates, reprocessing, and app restarts do not repeat the event. Dataset ready does not wait for Slow lane tasks, background uploads, or backups.

For a final success light, connect Dataset ready to white. Use Files transferred to stop the transfer animation, and Processing finished only for actions specific to processing.

Countdown end (countdown.finished) means the countdown gate is cleared. The managed trigger publishes it once at visible countdown zero, including when synchronized capture commands are dispatched early. With countdown disabled or set to zero, it still fires once at the capture boundary, after required warmup and synchronization, with total: 0 and durationMs: 0. No Countdown start or Countdown beat events are emitted in that case.

Aborting before the gate clears cancels its completion event. Denied capture authorization does not emit Countdown end. Coordinated video clears the gate at its acknowledged recording start, even with a zero countdown.

Countdown end does not stop lights by itself:

  1. Connect it to Stop on each Warming action node, including the node started by Warmup start and any separate node started by Countdown start. Two nodes using the same effect are separate executions.
  2. Connect Capture cancellation to Stop on both nodes so cancellation ends the lighting before the gate clears.

Warmup start is emitted once for a capture preparation. Releasing a held trigger reuses that preparation without restarting the warmup lighting. A light effect's Stop input also cancels its pending delay or preparation, so a late Play cannot turn the strips back on after Stop. Stopping a light effect does not abort a separate camera Timeline.

Processing finished

Processing finished (processing.finished) fires once per dataset after its Fast lane processing tasks and their required auto-run outputs complete successfully. It waits for queued Fast lane tasks and deferred output creation, not just the first completed job. It does not wait for Slow lane processing or outputs that depend on Slow lane producers.

Failed, cancelled, interrupted, or deleted unfinished tasks do not count as success. A successful retry can complete the chain. The completion marker is saved in the dataset metadata, so later task updates, reprocessing, and app restarts do not announce the same dataset again. Historical completed queue entries are not replayed on startup.

This event can precede Files transferred: processing may start from JPGs while RAW files are still arriving. It does not guarantee that all transfers, background uploads, backups, or Slow lane tasks have finished. With no Fast lane processing or output tasks, there is no Processing finished event.

Connect Dataset ready to a final success light or sound that must work with or without processing. Use Processing finished for a processing-specific cue. Add a datasetName condition when the action should apply only to a particular dataset. taskCount counts the completed Fast lane queue tasks; lane is always fast.

Add conditions

Conditions compare an event field with a value. Available operators are:

  • Equals: use remaining = 3 for one countdown beat.
  • Not equals: exclude one group, zone, or state.
  • Contains: match part of a text value such as a dataset name.
  • Greater than / Less than: compare numeric fields such as camera count or frame count.

All conditions on one event node must match. An empty condition list matches every occurrence of that event.

Use the field type shown by the event catalog. Numeric fields work with numeric comparisons. Boolean fields such as complete can be compared with true or false.

Multiple event nodes

Connect multiple event nodes to one action when several events may start it. The action uses OR by default, so any matching event can start it. Choose AND when all connected event sources must match before the action starts. See Timing and repeat control for the AND state and debounce behavior.

Updated

Page links