Hello everyone
I’m new to TouchDesigner, so sorry for any silly questions! I’m used to developing in other languages, and I’m not sure I’m tackling this problem the right way.
I have two videos: a standby_video and an activated_video.
The standby_video should loop continuously. When the activation trigger is activated (by pressing “1” on the keyboard), the activated_video should start as soon as the standby_video ends. After the activated_video finishes, the standby_video should play again.
The key point is that the last frame of the standby_video matches the first frame of the activated_video, and the last frame of the activated_video matches the first frame of the standby_video. This way, the transitions should be seamless:
- The activated_video should start right after the standby_video ends.
- The activated_video should reset to the 00:00 position before it plays through.
- The activated_video should only be visible for its duration.
- The standby_video should appear and restart when the activated_video reaches the end.
To set these conditions, I’m using the Info CHOP to know the duration of the videos and to manage the timing in the trigger, but there are some looping errors, and the patch isn’t working as I would like.
I’ve two starting triggers:
- the trigger that is activated when I press “1”, that have the duration of the standby_video
- the trigger activated then the standby_video is on the last_frame
When both are true, the third trigger becomes true: it sets “play” and opacity=1 on activated_video, and it has the length of the duration of the activated_video (here I have the problem: cook dependecy loop detected).
I don’t know how to avoid this.
Thank you very much!!