Selected Layers toggle visibility on/off


#1

Hi Guys,

Is there a way to toggle the on/off the visibility for the selected layers?

I will appreciate any help on this.

Cheers!


#2

Something like this?

$selectedLayers = `getLayerSelection("Display")`;
for($i = 0; $i < size ($selectedLayers); $i++ )
{
layerEditorLayerButtonVisibilityChange $selectedLayers[$i];
}

Build in scope and other niceties as you see fit…


#3

:eek:
Work perfect!

Thank you soo much.
:keenly: