Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

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:

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.

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:

emitter   = scene.get_PB_Emitter("RW_Crest_Splash01")
particles = emitter.getParticles()
 
for particle in particles:
	if (particle.isBelowRealWave()):
		emitter.removeParticle(particle.getId())
  • No labels