Cycling through lots of images with minimal stutter

benjamindaniels21's icon

Hey everyone,

noob here. I would like to cycle through a series of images in a folder extremely quickly (so that the actual images are almost indiscernible. Right now I am using a umenu loaded with the file names, but this method seems to get bogged down quickly as I test faster speeds. Occasionally images get "stuck" for longer than the qmetro that I'm using to trigger advancement of the images. Any ideas to get it so I can flip through lots of images (maybe 100) really quickly? Thank you all so much, I've learned SO MUCH from the forum! I apologize if I'm repeating an old question.

Best,
Ben

Christopher Dobrian's icon

You might want to look at the jit.matrixset object. You can load in your 100 or so images, then access each one by index number.

benjamindaniels21's icon

Thanks for the response, Christopher! That makes sense, but I cannot figure out how to load multiple images into the jit.matrixset. The "import movie" message seems to only like 1 image/movie file at a time. Any suggestions as to how to import multiple images all at one time?

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

You can use the 'index' message to tell jit.matrixset which slot you want to fill, then send it a matrix to store. In this example I pre-filled the umenu object with the names of three known files in the patches/media folder (so your Max application should be able to find them); you can 'populate' the umenu yourself, change the jit.matrix and jit.matrixset dimensions to be the correct size for your images, and alter the number of images (all the instances of the integer 3 in this patch) to correspond to the number of items in your umenu.

Karl Kliem's icon

check out jit.mgraphics. i made some help patches a while ago:
https://cycling74.com/forums/sharing-jit-mgraphics-help-patches/