Function to show/hide layer with Photoshop script (JSX)
I am writing a script that will loop through layers, trim them and export. So far I have most of all the element I need to complete this script. The only thing I can't find is how to show/hide an individual layer. I've found functions to show/hide all layers but nothing for one single layer. /////////////////////////////////////////////////////////////////////////////// // selectAllLayers - select all layers (Select > All Layers) /////////////////////////////////////////////////////////////////////////////// function selectAllLayers() { var ref = new ActionReference(); ref.putEnumerated(cTID(