Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Dyverso Domain

Add the script to Simulation Flow (Ctrl/Cmd + F2) > FramesPost or StepsPost.

The script deletes all particles from a Dyverso domain ("DY_Domain01") particles below a RealWave surface's waterline. Particles, which flow over the surface's borders, cannot be detected and have to be removed with appropriate daemons:

Code Block
languagepy
dyversoDomain = scene.get_DY_Domain("DY_Domain01")
particles     = dyversoDomain.getParticles()
 
for particle in particles:
	if (particle.isBelowRealwave()):
		dyversoDomain.removeParticle(particle.getId())

Standard Particle Emitter

Add the script to Simulation Flow (Ctrl/Cmd + F2) > FramesPost or StepsPost.

...