Hello!
as many beginners (example1, or example2) I am struggling with routing a CHOP value to different output.
Basically I have 3 Movie File In
s and I would like to set their file
parameter according to the value of a Counter
CHOP. Every time the counter ticks I set the file of the first player, then the second, then the third etc…
This Solution is actually the closest one, but I don’t know how to avoid the multiplication by 0.
Here’s my solution in Python:
# this executes every time the counter CHOP ticks
def onValueChange(channel, sampleIndex, val, prev):
index = int(val%3)
if index is 0:
print("Set new video for player1")
elif index is 1:
print("Set new video for player2")
elif index is 2:
print("Set new video for player3")
return
Is there any combination of operator that would allow this?
Thank you!