Timeline scripts coordinate reusable camera, light, GPIO, and timing steps. The editor calls these items Timeline scripts. Open Scripts to create, edit, review history, run, duplicate, or delete them.
Visual shows the visual editor and the selected timeline script's Assistant side by side. Code opens the JSONC editor. History lists saved edits. Settings contains the name, duplicate, restore-example, and delete controls. The visual editor always follows the active step during a run.
Click the Wayfinder icon in the module header to open the Scripts guide above the preset list or editor tabs. Click it again to close the guide without changing the selected script or editor tab.
Import and export the script list
Use Import / export at the bottom of the Scripts list to save or load all timeline and event scripts as JSON, or save and load named setups in your cloud account. Exports preserve script IDs, names, JSONC comments, and prompt references. The maximum setup size is 4 MiB.
Import replaces the entire script list after confirmation and saves a local recovery backup. Event listeners are disabled after import. Histories, Assistant conversations, sound files, trigger bindings, and Lights configuration are not transferred. Check camera, light, GPIO, and sound references before enabling or running imported scripts.
In a local development checkout, DEV: Set as factory default scripts replaces the shipped timeline and event examples with the current list. It does not change the current scripts. Rebuild Camera Server to distribute the new factory defaults.
Start with an example
Camera Server includes scripts for common setups in the Examples list. Restore an example to return it to its shipped content. Duplicate an example to keep its structure and edit a separate copy.
The shipped examples include:
- Timelapse repeat: warm up once, then capture a fixed number of frames at a configurable interval.
- Burst then single photo: switch image modes, capture a burst, switch back, and take a final single shot.
- Staggered groups: warm up and capture several camera groups at precise offsets on one shared timeline.
- Two groups with delayed trigger: warm up and capture two groups with a delay between them.
- Setting two shots: change image quality between two captures, with warmup and transfer pauses.
- Light timeline scripts: broadcast white, blue, and off states, run an effects show, or play and pause a light preset.
- GPIO timeline scripts: blink a pin or broadcast a set and pulse pattern to GPIO nodes.
The examples use placeholder camera groups, node targets, light groups, and preset IDs where your installation needs local values. Update those references before relying on an example at an event.
Timeline script structure
A timeline script has an ID, name, optional description, optional requestId, and an ordered steps array. The editor stores the ID, name, and description as timeline script metadata, so generated content can contain only fields such as groups and steps. The editor accepts JSONC, so comments and trailing commas are allowed.
Common step types include:
- Trigger: warm up, capture, or run another camera trigger phase.
- Set setting: change a camera setting for selected groups.
- Shot: place several camera actions on one shared clock using
atMsoffsets. - Repeat: repeat a group of steps a chosen number of times.
- Light: set or animate light output, including brightness, color, and effects.
- Light preset: play, pause, resume, or stop a configured light preset.
- GPIO: set or pulse a pin on selected nodes or all available GPIO nodes.
- Log: write a useful marker to the run log.
A step's duration is the pause after that step. It defaults to 500 ms when omitted and can be set to 0 to continue immediately. In a shot block, use each action's atMs offset for precise shared timing instead of relying on step duration.
Capture request IDs and datasets
Camera capture files are grouped into datasets by requestId.
- If the timeline script-level
requestIdis omitted, Camera Server creates one request ID for each run. Capture steps and shots that omit their own ID share it and are collected into one dataset. - Set a timeline script-level
requestIdwhen an external system needs to identify the capture with a known value. - Set
params.requestIdon an individualtriggerorshotwhen that step should start a separate dataset. Use a different value for each intended dataset. - Actions inside one
shotshould normally omit their ownrequestId. The shot-level ID, or the run-level ID when omitted, keeps its scheduled camera actions together.
For example, this run creates one dataset for the first two captures and a second dataset for the final capture:
{
"steps": [
{
"type": "trigger",
"params": { "target": { "all": true } },
"duration": 500
},
{
"type": "shot",
"params": {
"requestId": "second-dataset",
"actions": [
{
"atMs": 0,
"action": {
"type": "trigger",
"params": { "target": { "all": true } }
}
}
]
},
"duration": 0
}
]
}
The first trigger uses the generated run ID. The shot uses second-dataset, so its files are not merged into the first dataset.
Simulate before running
Turn on Simulation before selecting Run to preview the timeline and its step timing without sending device commands. Simulation does not trigger cameras or create captures or datasets. Turn Simulation off before a live run. The toggle starts off for each editor session.
When Simulation is on, Assistant uses the numbered cameras submitted to the current calibration recipe, including cameras that are not connected. If there is no current calibration recipe, Assistant falls back to the connected camera fleet. Calibration camera numbers do not describe camera modes or settings; those capabilities are available only for connected cameras.
Validate and run
Validation runs automatically after edits and again before Run. It checks the document structure, supported step types, required fields, target shape, and limits. Valid edits autosave, including changes applied by Assistant.
Run a timeline script from the page and watch the run log. You can run an individual light step from the visual preview when checking light timing.
Open History to see the selected timeline script's saved edits, newest first. Select an entry to restore it, or use undo and redo. Restoring an entry keeps the other snapshots available. History and Assistant conversations are separate for each timeline script in the left-hand list.
Bind a Timeline script to the main trigger from the trigger binding control when it should replace the normal capture action. To start it automatically when specific events and conditions occur, use an Event script instead.
Keep a working copy of a known-good timeline script before changing camera settings or timing. Test with the actual camera groups and nodes, then confirm the resulting files and transfer timing before using the timeline script during a live session.