Size, distance and scale between object with jit.gl.multiple

claridid's icon

Hello everyone.

I search desperatly a solution for change the size of a mesh duplicate with jit.gl.multiple. My probleme is that i can't change the size of the target object without change the distance between objects.
I want use two variable, one for the size of objects and on another for the distance betwenn objects.
How make to change size of objects without change the distance between objects ?

here a little exemple if someone can look !...

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

thanks

Rob Ramirez's icon

you simply need to change the order of your gl.multiple glparams list, to "position rotatexyz scale"
this will apply the scaling after the translation, which is what you want.

claridid's icon

Thanks you ! it was really a very simple problem !..

batchku's icon

Six years later, I am trying this and changing the gl param order seems to have no effect.

I see many other forum threads on how it's not possible to change position/scale independently with jit.gl.multiple

Is that really the case?

Pedro Santos's icon

You have to change the @glparam order in jit.gl.multiple but also the input matrices order.
Using the example from the original post:

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