Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

SCRIPT: SFX6: Debounce

By
Carlton Guc
on 10/24/16, 4:33 PM 235 views

Sometimes you have a trigger happy operator that a may double fire the GO! button from a mouse or keyboard trigger. These scripts can also be used to prevent any double firing of the GO! button whether from the the Relay Manager or MIDI device.

First we need to set a variable when the show loads, in File | Production Properties | Scripts, modify the “AfterOpen” script to include setting a variable to 0.

FUNCTION AfterOpen
    ASSIGN @inTrigger = 0
END FUNCTION
Create a new script function called "Debounce"
FUNCTION Debounce
  if @inTrigger == 0 then
       ASSIGN @inTrigger = 1
       GO
       delay 4
       ASSIGN @inTrigger = 0
  END
END FUNCTION
Assign the "GO! Button" trigger to the new Debounce script.






The script will check a variable to determine if @inTrigger is set to 1, if it is, then regardless of how many times you press GO!, it will be ignored. If @inTrigger is not set, the the function will set the variable to 1, send “GO” to the active cue list, and wait 4 seconds before the variable is reset to 0. If you want a tighter time variable, change the value from 4 to something smaller.

NOTE: If you just add this script to a production file, save, close and reopen the production so the AfterOpen script will run and set your initial variable to 0.



Add a Comment

Keep Informed

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/24/16, 4:33 PM
Seen: 235 times
Last updated: 10/24/16, 4:34 PM