I'm experimenting (outside of Blender) with some algorithms that place balls in a larger box, then incrementally move these balls to optimize positions until they reach an optimal state. Now, i would like to use Blender to visualize these algorithms, once to present the results to some audience, but also to find problems in the algorithms, as well as implementation bugs, as it's much easier to spot a wrong movement in a visualization than in a huge table of coordinates.
So what i would like to do is
- After each step of my algorithm, create a file that can be imported into Blender and contains the X/Y/Z coordinates of each of those balls
- Create a kind of motion description, like "File0 is the list of ball positions at 0 seconds, File1 is the list of positions after one second; i want a movie that moves each ball from its 1st position to the 2nd one"
I know how to solve part 1), as writing STL files is not very difficult, and Blender has an import feature. I will need to create a mesh of triangles around each center point, but i'm not afraid of that either.
The part where i don't have a clue how to do it is 2). Ideally, i'd like to create a file that i can import that contains all coordinate sets at all frame positions, but if that's not possible, i could import each STL file at its designated frame manually. However, i still have no clue how to tell blender "file 2 contains the same objects as file 1, just at a different point of time", and i don't want to "connect" every single vertext manually.
Is there a file format that can specify object positions as well as position changes over time, that's not too hard to create, that can be imported into Blender?