filling single plane with constant value in jit.matrix

David Beaudry's icon

Hi all,
Curious if there was a straightforward way to fill a mutiplane, multidim jit.matrix with a constant value. For example, I have a "jit.matrix 14 float32 1000 1000". I would like to fill all the cells in plane 12 with the value 12.3. Possible without iterating thru a bunch of jit.fill's?

Thank you in advance for any pointers!

David

David Beaudry's icon

Still trying to figure this out. Is it possible to replace/overwrite a specified plane in a multi-plane matrix? It would be straightforward to create a separate single plane matrix of the same size and fill it with one value (e.g., "setall 12.3" >> jit.matrix 1 float32 1000 1000). Is it possible to then replace say plane 10 if a "jit.matrix 14 float32 1000 1000" with this new plane?

Thanks again for advice!
David

David Beaudry's icon

OK, I think I figured it out:

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

Federico-AmazingMaxStuff's icon

Looks like you are looking for the "fillplane" message

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