Triggering playback based on reaching certain #'s in file folder index

Hey all! I’ve been meaning to make an account on here for a long time.
Anywho, down to the question.

I’m doing an installation where there will be 3 projections on 3 walls, one per wall.
On the main wall will be a progression of files in a folder meant to be sequential. Visitors will have access to a set of buttons, one of which will simply progress the main wall projection from… for ex, file 1 to file 2 to file 3, etc. I’m wanting a projection on a different wall to playback a video once someone has reached… file 55, for example.

Ideally video playback will continue even as they continue to click, and not be tied to playback on JUST file 55, if that makes sense. Videos will be very spread out thru out the sequence to minimize insane overlap.

I’ve got down everything I would need to map/etc, just having problems figuring out how I’d trigger playback upon reaching “file 55” etc the way that I described. Any help is greatly appreciated.

I’m assuming you have some sort of index counting up to select each file one after the next. If not, look at the Count CHOP to get counting. There are a couple of ways of testing a value and then doing something. The Logic CHOP can be set to ‘Off When Ousdie Bounds’ and with the bounds set to 55 it will give you a trigger at 55. Or if you can get into a little python this can be done with the Expression CHOP as well. The most flexible would be a CHOP Execute DAT with a script running ‘On Value Change’, then each time the value changes you check for 55 and do whatever you want. This is the most flexible as you can check for multiple values and take different actions of course.

I think using the CHOP Execute DAT would probably be best for what I need, but unfortunately I don’t have a lot of python experience and the turnaround is too fast to try to learn now… Thank you very much for your answer, though, as I can look into this in the future and try some things out.

for anyone curious, I think what I am going to do is … quite the… solution… lol.
I’ll have 3 folders with the same amount of files–37 is my actual number, I think. and I’ll have them all go forward in tandem so i can match files together on forward click. many of them will be blank files. as visitors click forward, all counters corresponding to each folder will count up, and once, ex file 22 is reached, a video will play on the left wall as thatll be the 22nd file in its folder as well. I’m sure for some people this is a lot more trouble than its worth, but its what feels simpler to me, not knowing python.

The unfortunate part is that this means it’s not just getting triggered and playing, its tied to the file number… so clicking forward from 22 to 23 before the video is over will result in the video being cut off… but i can deal with that for now.