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

select Skin tones and make it to new layer using script

Explorer ,
Mar 02, 2025 Mar 02, 2025

Copy link to clipboard

Copied

Hi everyone,

I want to do the following work by script but I don't know how to do it, 

I always do this:

Step 1:  go to Select Menu -> Color Range
   select: Skin Tones
   Fuzziness: 10
   -> Click OK

Step 2:  Ctrl + J (make the selection range to a new layer).

color range.PNGexpand image

 

please guide me, I appreciate your help.

TOPICS
Actions and scripting

Views

95
Translate

Report

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

Community Expert , Mar 02, 2025 Mar 02, 2025

@powerful_Zephyr5EF9 – Have you downloaded and installed the ScriptingListener plugin?

 

https://helpx.adobe.com/au/photoshop/kb/downloadable-plugins-and-content.html

 

This is necessary for things the basic Photoshop ExtendScript DOM does not cover.

 

Doing so would give you something like this:

 

var idcolorRange = stringIDToTypeID( "colorRange" );
    var desc376 = new ActionDescriptor();
    var idfuzziness = stringIDToTypeID( "fuzziness" );
    desc376.putInteger( idfuzziness, 10 );
    var
...

Votes

Translate
Adobe
Community Expert ,
Mar 02, 2025 Mar 02, 2025

Copy link to clipboard

Copied

@powerful_Zephyr5EF9 – Have you downloaded and installed the ScriptingListener plugin?

 

https://helpx.adobe.com/au/photoshop/kb/downloadable-plugins-and-content.html

 

This is necessary for things the basic Photoshop ExtendScript DOM does not cover.

 

Doing so would give you something like this:

 

var idcolorRange = stringIDToTypeID( "colorRange" );
    var desc376 = new ActionDescriptor();
    var idfuzziness = stringIDToTypeID( "fuzziness" );
    desc376.putInteger( idfuzziness, 10 );
    var idcolors = stringIDToTypeID( "colors" );
    var idcolors = stringIDToTypeID( "colors" );
    var idskinTone = stringIDToTypeID( "skinTone" );
    desc376.putEnumerated( idcolors, idcolors, idskinTone );
    var idcolorModel = stringIDToTypeID( "colorModel" );
    desc376.putInteger( idcolorModel, 0 );
executeAction( idcolorRange, desc376, DialogModes.NO );

var idcopyToLayer = stringIDToTypeID( "copyToLayer" );
executeAction( idcopyToLayer, undefined, DialogModes.NO );

Votes

Translate

Report

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
Explorer ,
Mar 02, 2025 Mar 02, 2025

Copy link to clipboard

Copied

it's work.

thank you very much.

Votes

Translate

Report

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
Community Expert ,
Mar 02, 2025 Mar 02, 2025

Copy link to clipboard

Copied

LATEST

You're welcome.

Votes

Translate

Report

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