Changing matrix values for position in 3D space

Conall Ó Maoláin's icon

Hello,
I'm using noise to position multiple instances of two different shapes in 3D space. In Gen I'm sorting the noise based on it being greater than or less than 0.5 so I have two black and white matrices which are then multiplied by normalised coordinates to get the position values. As there are a number of cells that have a value of 0 in each position matrix, a lot of the shapes are positioned at 0,0.

Is there a way to only pass values greater than 0 to the jit.gl.multiple objects in my patch?

I hope this all makes sense,

Thank you!

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


Rob Ramirez's icon

Download the Xray package from the Package manager and use a combination of xray.jit.cellcoords and xray.jit.cellvalue:

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


Conall Ó Maoláin's icon

Amazing, thank you!