Sorry for my beginner python skills - I am having trouble detecting end of movie playing in python.
I am experimenting with Elburz’s youtube videos of loading, checking, playing and unloading movies with python and can get each small script to play ok in main section as shown in screenshot of main network.
. And I have also tried his simulated while loop checker with his recursive delay shown in second screenshot to check when loaded. That also works just fine.
However when I tried to make similar checkers to try and find when movie is done using last frame or index fractions etc I can’t seem to get any of them to work.
What is the most reliable way in python to detect when a movie has finished playing from a moviefilein TOP? Is there a short script that can do this? Any hints appreciated.
Hi @gordharris ,
Try to use an Info CHOP referencing your moviefileinTOP, it will give you a lot of useful channels to monitor what’s going on. For example you could check if the channel “last_frame” is equal to 1 with a chopexecute DAT.
1 Like
@michelchrome Thanks so much Colin - that worked perfectly! I was trying to look at last_frame previously in a script but I guess it was so short my script did not detect it. But chop execute does trigger reliably from it.
On to the next puzzle - getting the right movies in there… And many thanks to Elburz for this technique.