Can I use jit.anim.node to rotate/translate an XYZ value in MAX/MSP?

Mitchell Graham's icon

I read that this object could be used to perform transformations, and that it doesn't discriminate what data it's given. Would this be suitable to use on a single point in space with an XYZ value? Is it efficient? How is the data formatted in the second outlet (dumpout)?

I am asking this so I don't end up making a convoluted patch with maths when it's not necessary, but I'm not using Jitter for anything else.

Also, if there is another method I've missed where I'm not having to use trigonometry then I would be pleased to hear about it

Thanks

Mitchell Graham's icon

Hello, I ended up using [Gen] to build the function. Since each axis uses the same formula I can just duplicate the Gen object. Thanks

Rob Ramirez's icon

seems like a great use-case for jit.anim.node in @automatic 0 mode

Mitchell Graham's icon

Okay, but do you know how to get the data out of it?? I tried connecting a print object to dumpout but it just does nothing

Rob Ramirez's icon

with Jitter objects you typically are querying their attributes. so send the message "getattributename", e.g. for position attribute getposition. depending on what you are doing you may be more interested in world-space position, so getworldpos

when using in non-automatic mode anim.node requires a bang to update state.

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