...
Here is how to use this tool:
- Select one → Hybrido mesh nodemesh node, and all the foam-type emitters you want to process.
- Click on the icon in the “Hybrido” shelf.
- The tool will create an appropriate number of emitter nodes with a “Snapped” suffix, e.g. “HY_Foam01_Snapped”.
- You will recognize that the new emitters have different settings than their parent nodes, but as they are only used to collect the displaced particles, it does not make any difference.
The tool will process the particles and align them with the mesh's geometry – they are snapped to the mesh's surface. This process can be monitored in the → “Messages” “Messages” window:
Executed "Snap Foam Particles Tool" for frame 32 in 0 hour(s), 0 minute(s) and 0.0640 second(s).
...
If you are not happy with the results, for example when you changed the ocean statistical spectrum, and want to repeat this process then the already existing “_Snapped” nodes will be reused, but their data will be overwritten. The original simulation files will be kept though.
Using "Snap Foam Particles" with RealFlow's Command Line Version
With a few preparations this tool can be used with the Command Line version and RealFlow Nodes. Create an empty text file and enter the following lines of Python code:
...