I was given some data from a simulation and am trying to animate said data. I've gone through several other posts where they accomplished this using Animation Nodes, which works for a fixed amount of objects. The problem I'm having is one data file can contain the position/rotation for an undefined amount of objects. What I need is some sort of first step that instantiates the necessary amount of objects and then a second part that animates the objects.
The solution I'm looking for needs to:
- Instantiate a undefined (dynamic) amount of objects
- All instantiated objects will be the same
- Animate a undefined (dynamic) amount of position/rotation vectors
If there is some better method to accomplish this other then Animation Nodes I am open to suggestions.
What I've tried so far
So far I've been able to animate a fixed number of objects using a loop input. I've played around with using a different character to separate the objects like '$' character. But I still get stuck trying to instantiate the objects dynamically.
Ok so I screwed around a little more and have it now so the objects get instantiated based on the length of a list taken from the first line where the elements are separated with '$' character.
I feel like I'm soo close now but I'm still running into the issue where it doesn't want to add keyframes for the 2nd line.
I've added a screenshot and the .blend so maybe someone else can see what's going wrong here?
I understand attachments are typically frowned upon in SE questions but so we can all be on the same page I've attached an example CSV file.
Some more things to note are:
- I can format the simulation data in any manner, if changing the format of the CSV allows me to more easily create animations then so be it
- Remember as long as I can animate an infinite/undefined amount of objects AND keyframes/data points then we're good.
- The approach I've taken at the moment is to have every line (row) = one animation cycle. The information for each object is stored on a single line, I use a the '$' character to divide objects as a little bit of a hack.