u/B_Babybrain

Hi everyone! I'm fairly new to TouchDesigner and working on a small interactive exhibition piece — would love some guidance.

The concept:

A screen displays a 3D character in an idle loop. An ultrasonic sensor detects when a viewer steps close, sends the distance to an Arduino, which then outputs:

- `IN` when someone enters the detection range

- `OUT` when they leave

- The current distance value

The intended behavior:

  1. Viewer approaches → play a "turn toward viewer" video clip
  2. That clip finishes → seamlessly loop a "staring" animation
  3. Viewer steps away → play a "turn away" video clip
  4. That clip finishes → return to the idle loop

I can already switch between the idle loop and the stare loop based on the `IN`/`OUT` signal from the Arduino. The part I'm stuck on is triggering the transition video clips correctly, so that the turn clip plays *before* the stare loop starts, and the turn-away clip plays *before* returning to idle.

My question:

How do I set up the video playback logic in TouchDesigner to handle these sequential states properly?

Any tips, example setups, or pointers to relevant tutorials would be hugely appreciated. Thanks!

reddit.com
u/B_Babybrain — 14 days ago