Question
Contiguous selection by color
Hello everyone.
I need your help for a script. I saw many examples of selection by color or position (x, y), but in this case what I want is a random selection of a specific but continuous color.
For example, I have a figure with three white objects, if I use the magic wand with continuous select, I would only select one object,

but with the current script select all white objects,

but I only want one.

thanks for your help....
