jit.anim.node and gl.node

fraction's icon

hi,
For a project i want to apply hierachical transformation to an upper level (containing multiple gl objects). So i guess the best would be to apply jit.anim.node and jit anim.drive to a jit.gl.node containing these gl objects. But i cant get it working.

is jit.anim.node supposed to work with jit.gl.node?

I just made a basic example :

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


If anim.node goes straight to all separate gl object, it works as expected. If the same process goes through a nodal hierarchy, jit.anim.node doesnt seem to work as if not rooted to this context, and only apply the first anim.mode to the first node.

what am i doing wrong here?

Rob Ramirez's icon

the relationship between anim.node and gl.node is a bit complex, but basically if you want a transform hierarchy between gl.node sub-contexts then you use gl.node. if you want a transform hierarchy within a single context or sub-context use anim.node.

for your patch example this means parenting sub2 and sub3 to sub1 (using gl.node, not anim.node, either via middle patchcord connection or context arg) and applying the transform values directly to those gl.nodes.

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

fraction's icon

thanks for the clear explanation! i didn't know the process here.

.. the name of jit.anim.node itself is actually a bit ambiguous , since it's not really relevant to use that object for jit.gl.node hierarchical animation ;)

Rob Ramirez's icon

anim.node is a node in a spatial transform hierarchy graph that can be animated, gl.node is a sub-graph node of a hierarchical rendering scenegraph, or something like that.

the word node is used by Max in 3 other completely distinct contexts that i'm aware of, so shrug emoji i guess...