Forums > Javascript

Dumping an image from jit.sketch to a matrix?

April 11, 2008 | 9:22 am

Hello list

I’ve been looking a bit on the jsui_spherepen-example, which can be found in the folder …MaxMSP/examples/javascript/ui

Could someone please help me find a way for dumping a finnished drawing out to a jit.matrix for further processing, like a "dump"-method or something?

Any help will be appreciated.


April 14, 2008 | 7:35 pm

Sorry to bump this, but after having a look at the jsui_imagestuff-example I’ve managed to incorporate two methods which transform the drawing into a texture. And that’s progress;)

But eventually I want to save the drawing to disk using a jit.matrix, or through one of the quicktime objects. How do I get the texture out of the JSUI object, as a matrix? Anyone’s got a hint?


April 15, 2008 | 8:44 pm

On Apr 14, 2008, at 12:35 PM, Lut Lei wrote:
>
> But eventually I want to save the drawing to disk using a
> jit.matrix, or through one of the quicktime objects. How do I get
> the texture out of the JSUI object, as a matrix? Anyone’s got a hint?

See jsui_matriximage-example.pat

-Joshua


April 15, 2008 | 9:25 pm

I’m shocked. All the time, it was there. Right in front of me, in the other-folder. So many hours searching… And now: copy, paste, and it’s working!

Thank you very much, jkc;) I had to fix this till tomorrow.


Viewing 4 posts - 1 through 4 (of 4 total)