Video Switcher

Hello!

I’m very new in Touchdesigner, so maybe it will be a very easy question to answer.

I’m trying to do a video switcher between several videos and controlled by two buttons, one to go forward and one to go back. I’ve tried a count CHOP to control de Index value of the switcher. It works and allows me to increase or decrease the value with one button, but I can’t find the way to use both at the same time. Any idea? And do you think this is the best way to do it or should I try something else?

Many thanks!

If you’re looking to do this with only CHOPs, consider that you need to count both your increasing values, and your decreasing values - then subtract them from one another.

Here’s a quick example:
count_up_and_down.tox (1.38 KB)

The catch here is that you’d probably also want a limit CHOP to determine how you loop, clamp, or hold values… do you stop at the total number of videos? Do you wrap around to the beginning, etc.

Hope this gives you a nudge in the right direction.

That’s exactly what I was looking for!

And yes, I have added a limit CHOP after the math CHOP with a Loop Type and it works as expected.

Thank you very much!!!