Return selected layer?


#1

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?


#2

As far as I know this will only be possible in Rhino 6 (working with layer selections in Layer panel via scripting).