isolating a layer (hiding all other layers)
I have started writing my first script but I am struggling to find out how to isolate an active layer.
Part of my script reads;
var doc = app.activeDocument;
doc.activeLayer = doc.artLayers.getByName('mk stone');
at this point I would like to hide all other layers in the document. I will then select one of the RGB channels then unhide the other layers.
I have worked out the selection part. So all I really need to know is how to hide and unhide all other layers.
Any help would be much appreciated.