JitterMatrix does not read files expressed as absolute paths in JS
Dear list,
Is there any chance for the JitterMatrix object in JS to be implemented in a future release so that its read method accepts files expressed as absolute paths, not just filenames? I believe it should behave as the standard jit.matrix object, but the actual limitation to filenames leads to tricky situations I think...
Best,
Frédéric
Should work fine with a path name. What does your path look like?
-Ben
Looks like this as a string: "Macintosh HD:/Users/fd/Desktop/tests/afolder/testMatrix.jxf.jit"
My tests are using two different matrices with the same name ("testMatrix.jxf.jit") and a different size for checking. Each of these is placed in a different folder ("afolder", "anotherfolder"). If these folders are not in Max's file search path they won't be found at all. If they are in the search path I have this message in the Max window (warning you have multiple files with the same name, using this). So it really looks like in all cases the path is stripped before actual reading.
Tests with same conditions and results done in both
Max 6.0.8, Mac OS10.8
Max 5.0.9, Mac OS10.7.5
Best,
Frédéric
Hi Frederic,
Thanks for more detail, I can repro here. We will have a closer look at improving this.
-Ben
Thanks a lot Ben.
- sorry I was meaning 5.1.9 not 5.0.9.
Best,
Frédéric
Hey Ben, was this ever fixed? I'm having the same problem in Windows.
No problem writing but reading results in an unfound file error.
works fine on both OSes over here Federico. Are you sure you're using importmovie and not read to load the images in the matrix? If so please send your patch and JS.
I'm using "read" Rob. Thank you very much, I'll send soon an example over
so you're not trying to read images but instead jitter matrix files? it's not clear since the original thread refers to read but describes reading images.
to read an image file into jit.matrix use importmovie
Yes I thought it was the same bug for both commands.
Uff, when I tried to reproduce the error in an example patch of course it worked.
Ahah don't know what to say! This happens so often.
Anyway, here's the patch + js just to give it a meaning to this 5 mins spent putting it together.
As always thank you very much Rob for checking in!