jit.gl.polymovie file types

Ferenc Fabian's icon

Hey guys, I noticed that when I add a folder with the readfolder message to the jit.gl.polymovie object it only sees the video files, but when I add a single file it can read images (like png etc). I found the related code in the js object that responsible for the filetypes, although I'm not a js coder so when I tried to change it it just gave me bunch of error messages. :))) Is it possible somehow to change this and being able to read images and videos as well when I read a whole folder? Cheers

Source Audio's icon

var filetypes = ["MPEG", "mpg4","MooV", "WVC1", "WMVA", "WMV3", "WMV2", "M4V ", "VfW ","PNG ", "JPEG", "GIFf", "TIFF", "BMP "];

paste this line , save and done

Rob Ramirez's icon

thanks for the report and solution, I added this change in for the next update.

Ferenc Fabian's icon

yeah, this is exactly what I did, but then I get this message:

I tried to change line 7 as well, which is const cachemode_static = 0;, but I get the same error message. Can I save this change somehow?

Source Audio's icon

you should not edit js file in max by doubleclicking js object.
open it as text in max, paste the line and save.
On next load of polymovie all will be fine.

file is located in


Ferenc Fabian's icon

okay, thanks very much