Prevent direct re-triggers for a given amount of time

Hi everyone,

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!

Many thanks!!

Tom

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

Hi @tguil001,

for simple workflows, the Trigger CHOP also has a Retrigger Delay parameter which might already do what you need in this case.

cheers
Markus

Thanks to you both for the suggestions. @drmbt didn’t manage to implement this but @snaut this looks like it should do it! Cheers. Tom