Activate Selected element Layer

Is there any fast solution to select some element and activate it´s Layer?

Some script or something that will automatically activate the selected element layer?
Thanks

If you are talking about making the object’s layer current, have you tried the _SetLayerToObject command?

(I think this command is poorly named, it should be called SetObjectLayerCurrent or something like that…)

–Mitch

Hi @Helvetosaur, that’s exactly it!!!

I 100% agree with you on that, the command is poorly named.
I looked around before posting because I was assuming that there should be a command for something like that.

Thanks a lot
Mad