0
$\begingroup$

I'm working on an Animation Nodes Animation where I create random vectors and different radii to feed a Close Packing Node. This is the initial state of my animation and I use the vectors and matrices from the packing node to do my actual animation (the nodes in my screenshots are just for demonstration purposes; I calculate radii and vectors for inital position and scale, close pack, and do sth afterwards, so please ignore that the nodes at the end are useless).

Unfortunately I run into pretty bad performance issues. The close packing node alone takes between 80 and 120ms to calculate and I cannot playback my animation in realtime.

So I would like to split my node tree into multiple, calculate my inital mtrices and vectors only ONCE and then use this data to feed my actual animation (which would run smoothly without the packing).

Is there a way to do that so I dont have to calculate the initial state on every frame?

Omar did something similar here, but my understanding is, that the inital value are calculated but not used. Make particles slip around objects in Animation Nodes

enter image description here

$\endgroup$

1 Answer 1

2
$\begingroup$

Groups have cache options, so you can put expensive nodes inside a group and turn on cache.

enter image description here

$\endgroup$
1
  • $\begingroup$ super cool, didn't know that!!! +1 $\endgroup$
    – Chris
    Aug 3, 2021 at 15:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .