An event script is a visual graph. Event nodes decide when something happens. Action nodes decide what Camera Server does. Edges connect an event to an action.
Node types
- Event: listens for one event from Camera Server and can filter it with conditions.
- Timeline script: runs saved camera, light, GPIO, and timing steps.
- Light preset: plays a saved preset on a selected light group.
- Light effect: runs a transient effect with a frame count and framerate.
- Light color: sets a color and optional brightness for available light nodes.
- GPIO: sets a pin high or low, or pulses it for a duration.
- Sound: plays an uploaded or built-in MP3 or WAV asset, once or in a loop.
- Comment: stores a note on the canvas. It does not run anything.
Connect nodes
Event nodes have an output. Action nodes have Start and Stop inputs. Sound nodes also have a Pause input.
Connect an event output to an action input by dragging between the handles. The graph does not execute from left to right based on screen position. The selected event and the edge port determine the behavior.
Only event nodes produce event script inputs. Actions do not connect directly to other actions. To chain actions, put the complete sequence in a Timeline script, or let a separate Event script listen for an event emitted by Camera Server.
Keep event scripts small
Use an Event script for event selection, filtering, timing, and interruption. Use a Timeline script for a reusable list of physical operations. A focused graph is easier to test and less likely to start the wrong output during a live event.