How to move the center of an object.

vasgat's icon

Hello,
I m new using opengl into max and i was wondering if i could move the center of an object (e.g. a sphere) from the center to the perimeter. I want the position in the perimeter not in the center of the object in order to be able to rotate it from there. I use jit.gl.gridshape object. Thanks in advance.
Vasso

Rob Ramirez's icon

check out the @anchor attribute for all opengl objects.

vasgat's icon

Thanks for your response Rob. I ve tested this attribute but it seems that is something wrong. Max Window message: anchor is not a valid attribute argument. Do you have any idea why this is happening? Actually, i ve seen to use this attribute also in some Jitter recipes (book 4).

Tobias Rosenberger's icon
Max Patch
Copy patch and select New From Clipboard in Max.
Rob Ramirez's icon

make sure you've updated to the latest version (6.0.8 as of this writing)

vasgat's icon

Indeed that was the problem. I had 6.0.1 version. I upgraded it and now it's working fine. Thank you.