Passing variables from Max to Javascript

namaste ranch's icon

I need to pass the dims of a jit.matrix to Javascript. getdim outputs them to the right outlet of the matrix, but I can't figure out how to send that info to JS. (Ultimately, I'll need to parse it to the separate x and y dims as variables in my JS.

Any help appreciated. Thanks!!

Jeff