I want to make some buttons for setting layer color with one click to either a random color or some common colors I use… Like almost black (1,1,1) etc.
Is there a way via script I can find out what layer is selected? Or am I forced to make the layer active to set the color?