Copy link to clipboard
Copied
Hello everyone,
I have an image where I selected the green screen using color range. Sometimes I have greens inside my object so they will be deleted, and I try to avoid that.
So I created a layer mask (in the same way it can be a selection).
original picture:
created a mask (isolated the background):
show the mask:
(as you see my object isn't entirely white)
I've scripted a MagicWand click on the middle of the canvas, because my subject is almost always in the middle.
so right now I'm here:
How do I make all the small selections inside it merge into one? (I thought of a script that finds all the subpaths inside a selection and then removes them)
Any help will be much appreciated
i found that you and r-bin already answered me for something else that does the same thing! (thank you again)
i'll share it for others to use as well
...select_max_selection();
function select_max_selection()
{
try {
// selection to workpath
var d = new ActionDescriptor();
var r = new ActionReference();
r.putClass(stringIDToTypeID("path"));
d.putReference(stringIDToTypeID("null"), r);
var r1 = new Ac
Copy link to clipboard
Copied
I just say there is Photoshop tool to do that, and I didn't see unclosed selections in paths of AG_Ps_100