Forums > Jitter

Jit.gl.multiple and anchor points

May 8, 2014 | 10:29 am

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

– Pasted Max Patch, click to expand. –
  • This topic was modified 3 months by  tom w.

May 8, 2014 | 3:06 pm

hi tom.

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


May 9, 2014 | 1:31 am

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


June 10, 2014 | 3:06 pm

Is there any workaround for that?


June 10, 2014 | 3:20 pm

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


June 12, 2014 | 7:18 am

nice solution!


June 12, 2014 | 7:31 am

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

– Pasted Max Patch, click to expand. –

Viewing 7 posts - 1 through 7 (of 7 total)