How to delete particle if they are too far a part

Hey,

I was wondering if there is a way to search for the nearest particle like Nearest Particle node does, but instead of compare with other particle loader it can compare with the current loader.

the effect i wish to achieve is like isolated kill in real-flow.

Thanks in advance for your help.

Right now searching over the incoming particles of the PRT Loader is not supported, although it is on the Wish List (for example Genome supports this for searching within the incoming mesh, but that does not translate directly).
You could create a Copy of the PRT Loader and use its particles as reference though, assuming the results of previous iterations do not have to affect the following iterations.

The flow would look like this:


You take the current particle’s Position in world space and look up the nearest particle from the reference PRT Loader (002). The trick is to set the Which Nearest to 2, because by default it is set to 1 and will find the corresponding current particle with distance of 0.0!

Then you convert the resulting position back from World Space into object space and subtract from the current particle’s position. Take the Magnitude which is the distance of the two particles and compare if it is Greater than a threshold. Send the Boolean value as Float to the Selection channel and drop a Krakatoa Delete on the stack to delete those that produced a Greater (1.0 = True) result, keeping the ones that produced (0.0 = False).

Hope this helps.

Bump–hope this makes it in soon.

We got the same request again this week on the Maya side of Magma.
I will ask around what the plans are…