javascript - Photoshop Script: Get color of Rectangle Shape and Solid Fill layers -
in project have rectangle shape layers , 1 solid fill layer. need print out colors of layers.
this code enumerates layers , prints names of visible:
#target photoshop (var = (app.activedocument.artlayers.length - 1); >= 0; i--) { var layer = app.activedocument.artlayers[i] if (layer.visible) { $.writeln(layer) } }
how can colors? layers may transparent.
Comments
Post a Comment