Jit.gl.multiple and anchor points

tom w's icon

Hi,

I am trying to figure out a way to use jit.gl.multiple to draw an array of planes (created with a jit.gl.gridshape object), whilst maintaining the anchor attribute of the original object. It seems that the original @anchor attribute does not carry through to the instances of the object created with the jit.gl.multiple. Does anybody know where I am going wrong, or is this something that is just not possible?

Cheers

Tom

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

Rob Ramirez's icon

hi tom.

gl.multiple does not currently support the @anchor attribute.
sorry about that!

tom w's icon

Thanks for the clarification. I won't spend any more time trying to get it to work!

Would be great as a feature in a future update though: jit.gl.multiple is something I use all the time, and whenever I want to control the y scale of individual objects sitting on a ground plane, I have to do the extra maths to alter their location according to their scale.

Cheers

Tom

Rajan Craveri's icon

Is there any workaround for that?

Rajan Craveri's icon

Ok a possible solution is jit.gl.gridshape matrixoutput mode 2 to jit.gl.mesh and than multiply that one.

Rob Ramirez's icon

nice solution!

Rajan Craveri's icon
Max Patch
Copy patch and select New From Clipboard in Max.

It works but I have some difficulties to set colors
here an example where I'm trying to assign random colors on spheres