Change layer by code

I was curious if there was a way to change a clip’s layer by code.

if you are interested in changing wich clip is in front of another have a look here

Oh ok! Thank you @blurredPixels and @pumpkinhead!