//===============================================//隐藏显示当前图层。//2013-09-20 by Jerry//===============================================// Macintosh Finder or the Windows Explorer
#target photoshop
// Make Photoshop the frontmost application
app.bringToFront();// call the source documentvar srcDoc = app.activeDocument;changeLayerVisible();functionchangeLayerVisible(){try{
srcDoc.activeLayer.visible =!(srcDoc.activeLayer.visible);}catch(ee){;}}
//===============================================//隐藏显示图层“LS” ,JS大小写敏感哦。//2013-09-20 by Jerry//===============================================// Macintosh Finder or the Windows Explorer
#target photoshop
// Make Photoshop the frontmost application
app.bringToFront();// call the source documentvar srcDoc = app.activeDocument;changeLayerVisible("LS");functionfindThisLayer(aLayerName){try{//try to find the layerreturn srcDoc.layers.getByName(aLayerName);}catch(ee){;//do nothing}}functionchangeLayerVisible(aLayerName){try{findThisLayer(aLayerName).visible =!(findThisLayer(aLayerName).visible);}catch(ee){alert("Layer :'"+ aLayerName +"' Not found!");}}