Unable to instantiate jit.matrixset inside Java (mxj)
Hi all,
So, I am trying to instantiate a jit.matrixset inside a Java but no matter what I try, I keep getting "could not instantiate" error.
The offending code excerpt is rather simple:
JitterObject jms = new JitterObject("jit.matrixset");
Trying to do this with optional arguments also fails.
Any ideas?
jit.matrixset is not available in the Java environment. Try an array of JitterMatrix objects.
That is sort of what I ended-up doing (I tie metadata with each frame, so I ended-up creating my own doubly-linked list). Unfortunately, the feature that is lost in this process is that matrixset can output one jxf for an array of matrices rather than having to output individual jxf for each matrix. I guess I could look into something like jit.qt.record + lossless codec...
On a somewhat related note, how does one instantiate a regular Max object inside mxj (e.g. a filepath object)?
Many thanks!
Bump - Is there any way yet, or any workaround, to instantiate jit.matrixset in java?
hey tarik, no workarounds as far as i know. but as mentioned, a java array of JitterMatrix objects is going to offer far more flexibility.
Hey Rob!
My goal with the matrixset was that I could use the 'importmovie' command to get myself a movie and access any frame at any time.
Previously I could do this with jit.movie, but the "frame" and "frame_true" now work asynchronously and I don't want my patch to wait for the output.
An alternative is of course to do a framedump from a jit.movie into an array of JitterMatrixes indeed, which is what I will try and do now.
thanks! - t
hey Tarik.
you may also want to look at the loadram feature of jit.movie @engine viddll.
you can load your entire movie into Ram (if you have enough). there's a bug in current version that requires setting cache_size prior to sending the loadram message (rather than as an attribute argument). this will be fixed in a soon-to-be-released update.
here's a demo (make sure you're running in 64 bit mode):