MagmaFlow - Delete by Colour

I’m trying to delete particles based on their colour.

I’ve managed to set their colour in one magmaflow modifier to a 3d texture map.

I’m now trying to extract the colour information and use this as a basis to create a selection and use a delete particles modifier.

Attached pic of what I have now…

Aha, of course you cannot do a logical > or < on two vectors, breaking it to just an X component comparing against a float works :slight_smile:

Starting to get my head into Magmaflow finally :wink:

The Breakout->ToVector you had in your flow only makes sense if you are swapping components (e.g. X becomes Y and Y becomes X etc.). Otherwise the Color output is already a Vector.
You can either compare each component, or, if you are interested in the intensity of the color, you could use the Magnitude of the Vector to convert it to (more or less) grayscale float value, then compare to a threshold. Obviously, this would lead to 1,0,0 and 0,1,0 to produce the same Float value, so if you are encoding different info in R, G, and B, using individual tests after a Breakout would make more sense…