This is follow up to my previous question here. I managed to get an answer and improve on it, however my current implementation is pretty cumbersome.
I need to simplify my current solution, as Animation Nodes take about 500ms+ to run the whole thing.
My question is, is it possible to select random object from collection, then place it on a spline from different collection - rinse and repeat until all splines are covered?
I already have a solution on placing objects on splines. But now I have 39 splines, and I have 39 "groups of nodes" and it is getting really slow. I feel like there is a Loop solution to this, but I can't figure it out.
Here is how my project looks like now:
Lots of instanced 3D icons "marching" towards buildings. It works pretty good. However, my current Animation Nodes set up looks like this.
It is difficult to navigate. I have 5 different icons and 39 splines. I tried to use Loop and Groups to help simplify certain steps. But I can't figure out how to make it more simple.
Here are node groups:
This one controls spacing between different objects on each spline - gaps between icons.
This one does all the animation using time. I want to vary speed of various "marching icons", so I put it in a Group.
Here are the groups I couldn't figure out how to connect together in 1 loop, with incrementation till all Splines are used.
Spline selection from Collection.
Icon Selection from collection and scale control.
And here is how they come together.
I select different Icon with Index, change scale, run it through Instancer and feed it into Loop to place them all on a Spline. Other Groups are plugged in as well at this stage.
Float Input node is used to pick starting Index from Spline Collection, then I add 1 to it with each duplication.
And then I simply copy and paste main node set up to repeat the whole process and add "1" to Spline Collection Index.
It was fine to use the whole "Place Objects on Spline" Loop set up at the beginning, but now I have 39 splines. I had to duplicate the groups many times and now it is getting difficult to navigate and even run.
Here is a Blend file on GoFile website, if you want to poke around - I'm not sure how long it will be available online as service is free.