To create a countdown timer, add a text source to your scene.
The command to create the timer is countdown
The parameters are;
- source=<text source name> (case sensitive)
- val=<starting value - in seconds>
- trigger=<number or name of the deck button to trigger when complete> (optional)
- delay=<time> (optional)
The optional delay specifies a time (in milliseconds) to wait before running the command.
The timer is displayed as minutes and seconds - example : 12:04
The main programmable deck buttons are numbered from 1 to 500 and can be referenced by their number. You can also reference these additional deck buttons by using their name;
- bank1... bank25 : the 25 numbered banks (pages) of deck buttons
- control : opens / closes the control panel with record / replay buffer / stream controls
- record : the record button in the control panel
- buffer : the replay buffer button in the control panel
- stream : the stream button in the control panel
- volume : opens / closes the volume panel
- backup : opens / closes the backup panel
- replay : opens / closes the replay panel
- replayPlay : the play button in the replay panel
- replayStop : the stop button in the replay panel
- replayCustom : the custom button in the replay panel
- capture : the replay capture button
- dragpad : opens / closes the dragpad panel
Example - create a timer and count down from 5 minutes (300 seconds). Deck button 22 is triggered when the countdown completes.
Set up a timer
From version 2.1.17 of the Lua script, you can now use relative values to adjust a running countdown...
Add 5 seconds to timer
Subtract 5 seconds from timer