Bypass of non-existant movies.
Im currently creating a patch to trigger video through Ableton –
My patch consists of a poly~ object containing a sprintf function and jit.qt.movie in order to read movies from the disk, by sending an integer value into the poly~.
For example, if the integer in would be 12, sprintf would read movie12.mov
This all works fine, however, while the poly~ object runs from (for example) 1 to 30, there isnt neccessarily a movie1.mov… right through to movie30.mov in the directory.
This means that when a movie is playing, and a non-existant movie is called via sprintf, the movie playing freezes on the current frame.
I wondered if anyone knows of a way to disregard a read movie message if the movie does not exist?
Here is the poly~ patch used:
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 648.3ocyW9saaBCEF+ZpTeG7rztKMBafDxtZ64XpJxAbSbEXSASZ5p1d1m+C DQ6RZwERY2fkN1x9y+746XyyWekGbi3.sBB9F3m.OumUQ7LwzQ7ZC3AyIGRx HUlAB4zGEatGNqoOI8fzD+K2.PGidmfKqX+hp6Agm62FmkZFqZBtAu73n404 LdFUZV.bmnhZYaXTa3BhLYGiuccIMQZkd.BoVBPXvJcS.ddzL.1etO31t5gS xM5A9iRFI63haWC4SET6jAYb0zdqo2ee8U5VUyrAyGljV5DevmlOnOBe7MfI dotAa+9g4yffSc9F2v.J1ILf6QZhYk.Q9CCC5zjY.3FBe6kHcoTsfTPIkj5D sviHsrIMKLzZQz.SZlMrDmsUOxTRDdp8L5z64.2MJHaFBxZTBQMkS5rmGW2v YN6yDjTSdkCm7wiW0hUlyZzBS0zECzlbo7G2yjyePNOWrmQAKw9fvXev22Kx .plZN6gZpa2GsbzbNHTfIwwdcDFMv5spc55bhrjcXnlnywxphRU0r6LUa.Fh 9UllrtfunwN+CGXJ7fBilvqqNCvj6XUEhrm9iKDJb7JM23PWEatHKdTtH6B8 rG0x436BcBS9uoOLzVF2Pq.2rgUj8zz0JAolt0Dox9sQcgbUCBZYfGT205DQ dNka2vPaOMLbbeBI2MThFMOIJvfxU1aD8Gri7xQY6bCyX7+4GaL6KcGuh8Uh 5xjVw03TAc1aozJIiSjLAuyfhd4f1wRSo7WjRlyRKDJaUiNdKyUukVbejV3j HM8aOeesgwSh3v8Rbn3ogb85TU+N2+aEm9u4mBw0avg+z0llHn2UaSic.0Kv MMmoK6U91jHsnOGpoCnZ9KfLMa0z -----------end_max5_patcher-----------
Thanks in advance,
lots of ways to handle this.
you can output the contents of your movie folder, using the "folder" object, and store them in a "coll" object. then you can test if the current movie exists by checking if it’s in the coll object.
alternatively, you can test the "read" notification output from the rightmost outlet of jit.qt.movie. if notification sends out the message "read filename.mov 0" it means there was a problem reading the movie, implying the file does not exist. you could test for a successful read this way, and if unsuccessful, read back in the previously playing movie, or however you want to handle that case.
Thanks for the response. I think the folder/coll option is the way to go, however, my folder object doesnt seem to output my video folder. If I drop a folder with .maxpat files its fine, if its wavs or .mov files it just gives me a count of 0. Ive done a search around the forums, not sure if this is a max for live or windows 7 bug?
Forums > Jitter