this is a very "beta" script and itīs made for a very specific project and it has a lot of room for improvement,
the script is divided in three parts, the first one creates a sequence of meshes from the particles. and the second one tells the selected object that on every frame change, use the corespondent baked mesh, the third one is just a tool to change some attrib on every mesh
from start_frame to end_frame:
->creates a meta ball
->tell the some Particle system to draw the Meta ball
->convert the metaball to a mesh, and save it as a fake user
on every frame change:
->object = selected.object
->object.mesh = "Baked Mesh" + current_frame
if you didnīt like the result you can use the "reset.py" script to make the meshes not use a fake user, them save the .blend file and open it again. You use this code to change the material o
hereīs a video of the result:
- The script works best with fast moving particles...
- Itīs a little bit confusing at first....
- maybe saving the meshes as an external file is better? i donīt know...
- Remember to toggle console to see in what frame the script is running, if there are a lot of particles things can get pretty slow
- Use a smooth modifier to make the fluid better looking
- There is a command at line X in the MakeMeshes.py that scales the metaball, you can change that if it better suits your needs, but a rather small number you make a mesh with no vertices
I tried to upload the blend file, but that is taking a long time, so here are the scripts:
MakeMesh.py - Bakes the surface and makes the frame change operator (see part two)
AnimateMesh.py - makes the object mesh change every frame keep this one register so the mesh is animated on startup
DeleteMesh.py - makes every baked mesh not fake user, ypu can use this to change the material of every mesh also (just change the code)