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.

Document syntax

The document is a JSON object. JSONC comments and trailing commas are accepted.

Script identity, name, description, kind, and selected history revision are managed separately in metadata. The source contains the actions and optional local groups. schemaVersion identifies the content format, not a history revision.

Field Type Required Meaning
schemaVersion number no Must be 1 when present.
deferTransfers boolean no Defaults to true. Defer new file transfers until the timeline ends.
groups array no Temporary camera groups.
lightGroups array no Temporary light-node groups.
gpioGroups array no Temporary GPIO-node groups.
steps array yes Ordered actions.

Every step has type and params. Most steps may also have duration, the trailing pause in milliseconds. Unknown content, step, and parameter fields are rejected. A target must specify exactly one selector. Validate before saving or running a step.

File transfers

Defer file transfers until timeline ends is enabled by default in the timeline's Settings tab, including for existing timelines that omit deferTransfers. Set it to false to allow transfers during execution.

The hold covers the whole timeline, including multiple bursts, sequential single-photo captures, repeats, and trailing pauses. Already active transfers finish normally. The timeline releases its own hold on completion, Stop, or error; manual pauses and other holds remain in effect.

An explicit capture waitForTransfer temporarily releases the timeline hold and restores it before later steps. A manual pause still prevents the wait from progressing. With deferral enabled, explicit transfer hold and resume steps affect only this timeline's hold.

Repeat structure

{
  "type": "repeat",
  "params": {
    "count": 3,
    "steps": [
      { "type": "trigger", "params": { "target": { "all": true } }, "duration": 5000 }
    ]
  },
  "duration": 0
}

Shot structure

A shot contains actions. Each action has atMs and an embedded action step. Nested shot and repeat actions are not allowed. Camera trigger and set-setting actions and generic node-command actions are the supported scheduled forms.

Naming

Use lowercase IDs with letters, digits, dashes, or underscores. Group IDs must be unique within their group namespace and must not be all, none, __all__, or __none__.

Updated

Page links