//written by Chris "Funky Bunnies" Whitaker //www.funkybunnies3d.com //simple script to toggle visibility of any layers named UV, UVs, or prefixed with TGL_ //installation: drop script file into Program Files/Adobe/PhotoshopCS2/Presets/Scripts //now upon photoshop restart it'll show up in File->Scripts //you can set it to a hotkey (F4 maybe?) with Edit->KeyboardShortcuts->ApplicationMenus->File->Scripts #target photoshop app.bringToFront(); //if you don't want it to check within layer groups as well, set next line to false; var checkLayerSets = true; //if you want it to check for only the first layer it finds, set next line to false; var findAll = false; //run main function uvTGL(); function uvTGL() { if (app.documents.length <= 0) { //alert("There are no documents open!", "UV visibility toggle"); return; } var activeDoc = app.activeDocument; //traverse through layers to find any non-layergroup named "UV", "UVS" or prefixed with "TGL_" for(var i =0;i