Determine layer color label from layer id?
Hi,
Does anyone know if it's possible to determine the layer color label that's shown to the left of the layer name? I tried to determine the color label using the following method, however this isn't returning the expected result. I'm using photoshop CC 2015.
var ref = new ActionReference();
ref.putIndex(charIDToTypeID('Lyr '), layer.id);
var desc = executeActionGet(ref);
var color = typeIDToStringID(desc.getEnumerationValue(stringIDToTypeID("color")));
The color variable is consistently returning "grain". Please let me know if anyone knows how to get the color from the layer label.
Thanks in advance!
