Hey everyone,
I’m currently building an interactive setup in TouchDesigner where hand gestures (Thumb Up / Down) control a sequence of phases — kind of like a state machine that moves through several recording steps.
The basic logic works like this:
Thumb Up → moves to the next phase (via Count CHOP)
Thumb Down → restarts the current recording or resets the count
Each phase is represented by a count_phase CHOP, and the current phase number is read by several Expression CHOPs that control other logic.
I’m using a Null CHOP (and sometimes Hold or Delay) after the Count to stabilize the signal and prevent loops.
However, even with the Hold or Delay CHOP in between, I keep getting the warning:
Cook dependency loop detected. Check for exports, expressions, etc.
My Expressions only read from the Null CHOP, not directly from the Count,
but it seems TouchDesigner still detects a dependency loop between the Count, the Null, and the Expressions.
I’ve also tried introducing a Feedback CHOP to handle the state feedback over frames,
but I’m not 100% sure if I’m wiring it correctly.
So my questions are:
What’s the best way to safely “read” a Count CHOP’s output in multiple Expressions without triggering a cook loop?
Any advice or reference examples would be amazing ![]()
Thanks a lot in advance!