0
Get layer colour property
Engaged
,
/t5/photoshop-ecosystem-discussions/get-layer-colour-property/td-p/12513626
Nov 10, 2021
Nov 10, 2021
Copy link to clipboard
Copied
In Photoshop, I can change a layer color (in the layers window) to violet with:
var idsetd = charIDToTypeID( "setd" );
var desc5146 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref1552 = new ActionReference();
var idLyr = charIDToTypeID( "Lyr " );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref1552.putEnumerated( idLyr, idOrdn, idTrgt );
desc5146.putReference( idnull, ref1552 );
var idT = charIDToTypeID( "T " );
var desc5147 = new ActionDescriptor();
var idClr = charIDToTypeID( "Clr " );
var idClr = charIDToTypeID( "Clr " );
var idVlt = charIDToTypeID( "Vlt " );
desc5147.putEnumerated( idClr, idClr, idVlt );
var idLyr = charIDToTypeID( "Lyr " );
desc5146.putObject( idT, idLyr, desc5147 );
executeAction( idsetd, desc5146, DialogModes.NO );
Is there a way to detect such a layer has been changed from "no color" to red or orange? Get, rather than set? There doesn't seem to be an art layer property for this.
TOPICS
Actions and scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explore related tutorials & articles
Community Expert
,
/t5/photoshop-ecosystem-discussions/get-layer-colour-property/m-p/12515365#M597632
Nov 10, 2021
Nov 10, 2021
Copy link to clipboard
Copied
You might get better answers in the Photoshop ecosystem community. Use the Actions & scripting tag.
Nancy O'Shea— Product User, Community Expert & Moderator
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
People's Champ
,
LATEST
/t5/photoshop-ecosystem-discussions/get-layer-colour-property/m-p/12516950#M597634
Nov 11, 2021
Nov 11, 2021
Copy link to clipboard
Copied
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

