Versions Compared

Key

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

Dyverso Domains

Add script to Simulation Flow > FramesPre or StepsPre.

...

Code Block
languagepy
emitter          = scene.get_PB_Emitter("Square01")
emitterParticles = emitter.getParticles()
searchRadius     = 0.2
 
for particle in emitterParticles:
	neighbours = particle.getNeighbors(searchRadius)
 
	scene.message(str(len(neighbours))+" neighbour particles found for particle "+str(particle.getId()))

Hybrido Domains

A comparable function is not available for Hybrido core fluid particles or secondary fluid particles.