...
The first argument, “Particle friction”, is the affected parameter and “new_particle_friction” is the value the script should apply. The "Particle Fluid Interaction" window is updated with each frame and shows the new rounded value, the exact result is printed to the "Messages" window.
Of course, the parameters are not restricted to the "Particle Fluid Interaction" panel – you can choose them from any section under "Node Params". The code from above is nothing more than an example. You can change almost any of RealFlow’s parameters with scripting. It is not only possible to write new values as numbers (integers, vectors or floats), you can also use strings or Boolean values. That is mostly necessary for parameters which are not numbers, for example the dynamics feature under "Node". Even this parameter can be influenced with scripting. In the following code segment, “Dynamics” is set from “No” to “Rigid body” at the beginning of the simulation ("SimulationPre"):
...