Select and mask based on the color on BG

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

brindavin29
Posts: 1
Joined: Mon Mar 13, 2017 10:25 pm

Select and mask based on the color on BG

Post by brindavin29 »

Hello Team,

I have a bunch of files with different BG's where I need to automate the files to select and mask based on the predefined color in script.
EG: If BG has light grey, Mid grey & Shadow grey, script should pick any of the 2 grey values and select and mask the values within photoshop masks.

Attached the script currently what I am using which is created based on the selection area using marquee tool. But now I need it to refer the values with our pre-defined color values for masking.
Attachments
Image_2.png
Image_2.png (70.29 KiB) Viewed 3656 times
Image_1.png
Image_1.png (64.09 KiB) Viewed 3656 times