[dim] in jit.gl.pix when there are 2 input matrices

Masa's icon

Hi all,

What will be the value of [dim] when when there are 2 input matrices coming to jit.gl.pix object?
I am facing this question with the example patch (Examples > jitter-examples > gen > jit.gl.pix sprinkle).

Max Patch
Copy patch and select New From Clipboard in Max.

Many thanks for your help,
Masa

metamax's icon

From the Gen Overview document.. at the very bottom.. in fine print.. near the legal disclaimer:

" In jit.gl.pix , the values for the cell and dim operators are calculated from the properties of the left-most input (in1). "

Masa's icon

Thank you so much Metamax.
I should re-read the document again...!

loadmess's icon

Hello Gen Jitters,
I'm new in the gen world, so I'm still figuring out basic stuff.
I looked around in the forum and in the documentation, but I didn't find the answers I'm looking for.

dim operator reference

This info doesn't mean much for a beginner without some basic example of usage.
I have a basic example where I have a one plane input matrix of size 5x2.
I expected to get that info from the dim operator but I only get 5's (the x axis).

I already tried all possible combinations the I could remember.
Does anyone know how explain this to me?

Max Patch
Copy patch and select New From Clipboard in Max.

Eventually I wish to learn how to access this info in the codebox.
It's a tiny step of something bigger that I'm trying to achieve.
Thank you all!

Rob Ramirez's icon

the output matrix dims and planecount will match the leftmost input matrix, so if you want 2 plane output then you need to send in 2 plane input.

loadmess's icon

Thank you very much for the reply Rob! I was banging my head around that...