Every step is an object with a type and params. The visual editor offers the common step types; Code view also exposes advanced forms.
| Type | Purpose |
|---|---|
trigger |
Warm up or capture a camera target. |
set-setting |
Set one camera setting on a target. |
set-mode |
Apply a saved camera mode. |
set-trigger-mode |
Change a group's trigger-mode configuration. |
autofocus |
Enable or disable autofocus. |
shot |
Schedule camera actions on one shared clock. |
wait |
Pause using a positive duration. |
repeat |
Run nested steps count times. |
transfer |
Hold or resume transfer. |
dataset |
Create, select, or rename a dataset. |
log |
Add a message to the run log. |
node-command |
Send an advanced command to one node. |
light |
Send a light command. |
light-effect |
Run a transient light effect. |
light-preset |
Play, pause, or stop a light preset. |
gpio |
Set or pulse a GPIO pin. |
Camera trigger
{
"type": "trigger",
"params": {
"target": { "groupId": "front" },
"phase": "capture",
"waitForTransfer": false
},
"duration": 0
}
phase accepts warmup, capture, or aborted. Optional parameters are burst, requestId, and waitForTransfer. A burst uses nested durationMs (greater than zero and at most 600000 ms) and maxFrames (an integer from 0 through 500), with at least one supplied. Use step duration for a trailing pause. Ignored fields such as captureDurationMs and delayMs are rejected.
Configuration and data
set-setting requires target, setting, and value. set-mode requires target and modeId. autofocus requires target and boolean enabled. transfer.action is hold or resume. dataset.action is create, select, or rename; create and rename may include name.
Apply set-setting and set-mode before the capture they affect. These steps do not warm up the cameras.
After changing a setting or mode, add a separate trigger with phase: "warmup" for the same target, then give it a settling duration, normally 1000 ms, before the capture trigger. For repeated captures that change settings, use set-setting, warmup, and capture in that order for each iteration.
A duration after a setting or mode change is only a pause and is not a substitute for the warmup trigger. Burst capture likewise requires burst mode to be applied before the burst trigger.
Flow and output
repeat.params.count is a positive integer. A repeat normally contains a non-empty steps array.
Set optional repeat.params.combineAsIterations to true to store all repeat captures in one dataset with one iteration per repeat count. The default false creates a separate dataset for each repeat iteration.
Combined repeats require exactly one plain capture trigger per iteration and the same target throughout. A fixed subset or zone is supported. Settings and warmup steps may precede the capture. shot, nested repeats, managed triggers, node commands, dataset actions, mode changes, burst overrides, and custom capture request IDs are rejected inside a combined repeat. Prepare photo mode before the repeat. Multi-frame camera modes and changing the enabled target cameras during execution also stop the run with an error. For other shapes, disable combineAsIterations; the server never changes dataset grouping silently.
When each iteration needs different settings, add stepsByIteration with exactly count non-empty steps arrays; steps may be empty in that case because the runner executes the matching per-iteration array.
log.params.message is required. The keyword table lists Light and GPIO command fields, which are too extensive for a single step summary.