Anybody? Is this a bug? Or some sort of essential limitation of the jit.mgraphics object? Is it possible that you can only set the dimensions of the matrix produced by jit.mgraphics in the arguments to the object? I tried using an attrui object as well, but the dimensions are not editable, except by literally retyping the arguments in the object box.
Don't make me go back to using jit.lcd ;)
I'm trying to construct an alpha channel out of various drawn shapes using jit.mgraphics, but the size of the matrix I'm working with can vary dynamically depending on logic elsewhere in the patch.
There is an adapt flag, but since jit.mgraphics does not take a matrix in I can't trick it by setting the flag and sending it a matrix that I've "dimmed" to the desired size.
Your right, after doing my tests over it does seem I missed that the dim message was working, just not reporting correctly with "getdim". Below is a simple demo patch that passes the jit.mgraphics matrix to a jit.matrix object and tests dims before and after.
Just curious, why do you say that dynamically changing the matrix dims is a bad solution? I'm building a utility that can take an image or movie of any size and build a certain (precise, pixel-matched) alpha channel for it - its important that I preserve the original dimensions, which would change for every image/movie processed. I guess I need to be careful to clear the scene, then resize my jit.mgraphics "canvas" (ie dim it), then do my drawing, so that the change to the dim does not come unexpectedly...