I'd like to write a function (that's included in multiple layouts) that will hide all but two layers of the current layout. Each layout may include differing numbers of layers so I'm having trouble figuring out how to loop through them.
If I could toggle visibility of all layers at once that would work too.