Color Match on Photoshop CC

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: Kukurykus, Tom, xbytor

wasfiwasfi
Posts: 45
Joined: Fri Nov 04, 2016 8:29 am

Color Match on Photoshop CC

Post by wasfiwasfi »

Hi Guys

any chance to to do "Color match" on Photoshop CC using Javascript !!

i've tried this without success !! gives always Black images

///=======================
// =======================================================
var idmatchColor = stringIDToTypeID( "matchColor" );
var desc10 = new ActionDescriptor();
var idselectedSourceAreas = stringIDToTypeID( "selectedSourceAreas" );
desc10.putBoolean( idselectedSourceAreas, true );
var idSlcA = charIDToTypeID( "SlcA" );
desc10.putBoolean( idSlcA, true );
var idLght = charIDToTypeID( "Lght" );
desc10.putInteger( idLght, 100 );
var idClrR = charIDToTypeID( "ClrR" );
desc10.putInteger( idClrR, 100 );
var idFade = charIDToTypeID( "Fade" );
desc10.putInteger( idFade, 0 );
var idfsel = charIDToTypeID( "fsel" );
desc10.putBoolean( idfsel, true );
var idSrce = charIDToTypeID( "Srce" );
var ref10 = new ActionReference();
var idLyr = charIDToTypeID( "Lyr " );
var idOrdn = charIDToTypeID( "Ordn" );
var idMrgd = charIDToTypeID( "Mrgd" );
ref10.putEnumerated( idLyr, idOrdn, idMrgd );
var idDcmn = charIDToTypeID( "Dcmn" );
ref10.putName( idDcmn, "Color Match.psd" );
desc10.putReference( idSrce, ref10 );
executeAction( idmatchColor, desc10, DialogModes.NO );

//=====================================================

Thank you very much