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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -