Hello dear devvvvs,
cvtester2019 here from the riot.
I was trying to do something like that: I have some particles and I want to animate them by using a Filter. But the Filter can be provided by a user. So I have an Animator which accepts different filters, each of them is implementing IAnimation interface. There are several Animation nodes which implement this interface, like DamperAnimation, FooAnimation…
As far as I understood, inside the Animator I have to instantiate as many Animation nodes as there are particles in my spread. And my question is if I’m doing this right.
I know, theoretically I can make a spread of damper nodes beforehand, but imagine that I don’t know beforehand if every particle is Animatable or not (suppose, that only some of them are). So the Animator node is asking every particle if it is Animatable or not and then creates a filter for it. (this is not implemented in the document for the sake of simplicity)
Here is how the main application looks like:
And this is the document:
ParticleAnimator.vl (60.1 KB)