Event scripts connect Camera Server events to actions. An Event script starts when an event node receives a matching event, then follows the connected action nodes.
Create your first event script
- Open Scripts and create a new event script.
- Select New event script and give it a clear name.
- Add an event node and choose the event that should start the event script. For a first test, use Warmup start.
- Add an action node, such as a sound or light preset.
- Connect the event node's output to the action node's Start input.
- Save the event script while it is disabled.
- Temporarily enable the event script, test the source event, and confirm that the action responds. Disable it again before making further graph changes.
- Enable the event script only after the complete event path works.
An enabled event script must have at least one event connected to an action with a Start edge. You can save an incomplete graph as a draft, but you cannot enable it.
Add a stop event
To end an action when another event arrives, add a second event node and connect it to the action's Stop input. For example, connect Capture start to Start and Files transferred to Stop for a light or sound action that continues through file transfer. Use Dataset ready to wait for transfer and required Fast lane processing, or Capture end to stop at the estimated end of the capture window. Add Capture cancellation to Stop as well so cancellation ends the action.
Stop behavior depends on the action. It aborts a running timeline script, turns off a light output, sets a GPIO pin low, or stops a sound. A sound node also supports a Pause connection.
Before enabling
- Run a target Timeline script directly before triggering it from an Event script.
- Check that the referenced timeline script, light group, light preset, GPIO node, or sound asset exists.
- Use a condition when the event should apply only to one zone, group, countdown value, or dataset.
- Keep the event script disabled while changing its graph.
- Watch the event script state and run log while testing.
For details, see Event script graph concepts, Events and conditions, and Event script actions.