I’m working on a light and sound interactive installation using multiple distance sensors.
I’m looking for a straightforward way to filter out any triggers that occur within a short period (around 500ms) after the initial trigger to prevent overwhelming the system.
The sensor data is equivalent to a momentary button so these can be used to exemplify the technique.
Any advice on how to implement this would be greatly appreciated!
for this kind of thing, I usually create a custom paramter ‘Busy’ that i set to True when i get a trigger message. Trigger message check against if parent().par.Busy == False: do a thing
my trigger will also start a timer chop, with an onDone callback that turns Busy back to False, reinitializing my ability to get a new trigger again. hope that makes sense and is helpful