Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Remove minor subpaths - Subtract small selections

Engaged ,
Feb 10, 2019 Feb 10, 2019

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

TOPICS
Actions and scripting
3.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Feb 10, 2019 Feb 10, 2019

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

...
Translate
Adobe
LEGEND ,
Feb 11, 2019 Feb 11, 2019

I just say there is Photoshop tool to do that, and I didn't see unclosed selections in paths of AG_Ps_100

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines