Thanks a bunch, those were helpful. You're clearly pretty fluent with Blender, how long ago did you start learning? Were there any resources you found helpful, especially for scientific applications? Most tutorials I've found are aimed more at artists, video game/movie animators, etc.
I've been looking into the Python API and the animation nodes addon too, both seem pretty powerful.