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).
please guide me, I appreciate your help.
1 Correct answer
@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
...
Explore related tutorials & articles
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 );
Copy link to clipboard
Copied
it's work.
thank you very much.
Copy link to clipboard
Copied
You're welcome.

