-
Determine if a layer contains only one color
Hello. I’m trying to write an expression that determines if a layer contains only one color. I’m analyzing various images that I’ve placed on a background layer. Some of the images are simply solid colors. Others are all sorts of colors. The issue I’m running into is sometimes the images that are solid colors end up being the same color as the background layer. When that happens the image obviously disappears into the background layer. I tried using sampleImage but it was giving me the average color of the sample radius. Essentially I’d like to be able to create an expression that answers the “yes or no” question of: is this image one solid color? Any help would be greatly appreciated. Thank you.