Filtering on primitive attribute

I’m wondering if there is a way to filter an operation on its primitive values or on a point value.

Example being. I have a grid and a particle system. I find the nearest particle using neighbors but I only care about it if that particle isn’t part of the grid. So I want to somehow check all the neighbors for a given point and do something like color the grid point if it is a particle.

particesystemingrid.toe (7.6 KB)

Here’s a quick and dirty implementation with a shader. I’m messing up the color stuff. I think I’m just using lookup attribute wrong. I could just assign the color in the shader at this point.

i was missing lookup attr is index in the lookup attr pop

In the next TDAlphaPOPs5 Neighbor POP and Proximity POP will allow 2 inputs and find the points of input 1 that are close to each point of input 0.

1 Like