/
Delete Particles Below RW Surface
Delete Particles Below RW Surface
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:
# Get the domain "DY_Domain01" and its particles dyversoDomain = scene.get_DY_Domain("DY_Domain01") particles = dyversoDomain.getParticles() # Loop through every particle and delete it when it is below a RealWave surface 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.
The script deletes all crest splash emitter ("RW_Crest_splash_01") 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:
# Get the standard particle emitter "RW_Crest_Splash01" and its particles emitter = scene.get_PB_Emitter("RW_Crest_Splash01") particles = emitter.getParticles() # Loop through every particle and delete it when it is below a RealWave surface for particle in particles: if (particle.isBelowRealWave()): emitter.removeParticle(particle.getId())
Related content
Looping - Particles
Looping - Particles
More like this
DyDomain - RW Particle Interaction
DyDomain - RW Particle Interaction
More like this
DyDomain - RW Particle Interaction
DyDomain - RW Particle Interaction
More like this
SPH - RW Particle Interaction
SPH - RW Particle Interaction
More like this
SP - RW Particle Interaction
SP - RW Particle Interaction
More like this
Finding Particle Neighbours
Finding Particle Neighbours
More like this