jit.anim.node @automatic 1 -> updated by which context?


    Jul 06 2016 | 2:38 pm
    Hi
    I have a few questions regarding the jit.anim.node:
    If I have multiple render contexts in my patch, which "draw context" is updating jit.anim.node? - There is no attribute to be set (like drawto)
    I need to know exactly when the update of all the jit.anim.node chains occurs -> Is it happening before or after the draw ? - I assume it happens on a bang to jit.render.
    Is there a way to cause a render without updating the jit.anim.nodes? (without @automatic = 0)
    cheers
    martin

    • Jul 06 2016 | 3:24 pm
      hi martin.
      anim.nodes are bound to a drawto context based on the drawto of their attached GL object (or attached objects of their children).
      anim.node updates happen at the beginning of the gl.render's draw routine (triggered by the gl.render bang).
      Is there a way to cause a render without updating the jit.anim.nodes? (without @automatic = 0)
      the only way to manually manage anim.node updates is by setting @automatic 0, so no.
    • Jul 06 2016 | 5:12 pm
      Hi rob
      thanks for your quick reply. In my tests I notice the following: if a parent anim.node is set to @automatic = 0, the child nodes are only updated if the parent node gets a bang (or they them self get a manual bang), even if the child nodes objects belong to a different context.
      is this a feature or an oversight? if it is a feature, then this would suit my needs.
      the following patch illustrates the setup: