# Last/next cue point function to MovieFileIn Top

Hi, I come from max, I try to make a multi cue point for MovieFileIn Top, because it is so smooth player than max, for example, if I have 0.2 0.4 0.45 0.5…a few cue points(fraction), I hope there is a next button Trigger them one after one, but when the movie index_fraction pass the cue point, it can prepare to start the next cue point. Ignore the cue point that passed, which is similar to the function of the cue point in the Ableton live arrangement timeline. This is easy to do in max, But I so new to TD, Can anyone give me some suggestion? thanks a lot！

Hello, what do you want is not very clear…
When the movie pass the cue point do you want a jump to the next one, continuing to play, a jump and stop?
“when the movie index_fraction pass the cue point, it can prepare to start the next cue point.” Its not evident to understand. Perhaps can you post also the .toe?

Hi @zqpm1qaz,

you can solve this by converting the cue table to a CHOP and then deleting samples depending on the `index_fraction` of the `moviefilein`.

The result would be 2 CHOPs which hold the index of the next and previous cue.
Have a look at the attached component that solves this with a few CHOPs and some small scripting in the next and prev buttons.

Cheers
Markus
prevNextCue.tox (2.3 KB)

Thank you for your reply. The movie plays continuously. This is my toe file. Through count chop, I can trigger cue points one after one. What I hope to achieve is that when the movie fraction over one cue point, press The next button can trigger the next cue that has not been passed. For example, when the movie fraction runs more than 0.2(first cue), when I press the next button, it can bypass 0.2 and trigger 0.4. (second cue), my English is not good, I will try my best, hope you can understandmulti cue b0.1.toe (4.6 KB)

Wow, this looks different from what I imagined. I will try to understand your plan and see if it can be solved. Thank you!

Hello,
I think I found a simple solution with some python in chopexecute DAT. You can easely add more cue.
After the last cue ther is no action but you can change it.

``````def onOffToOn(channel, sampleIndex, val, prev):
# actual time
time = op('info1')[0]
# number of row
n = op('table2').numRows
# for each cue
for i in range (0,n):
# to know if the actual time is before or after the cue
d = time - op('table2')[i,0]
# go to the cue
if d <= 0:
op('moviefilein1').par.cuepoint = op('table2')[i,0]
op('moviefilein1').par.cuepulse.pulse()
break
return
``````

goToCue.toe (4.3 KB)

2 Likes

That’s clean! I think I need to learn python deeply, thank you!