Scripts

Toggle Layer Visibility

Overview:

  • This script toggles visibility of layers with specific prefix
../_images/02_2.gif

Usage:

Advanced:

  • Layers with color labes will be ignored: that’s useful when you have several different versions of a layer you want to toggle. If you don’t want labels to be ignored, change a line ignoreColorLabels = false; to ignoreColorLabels = true; in the toggle_layer_visibility.jsx file;
  • To change the prefix, add more prefixes or remove some, edit the toggle_layer_visibility.jsx found in Scripts fodler of your Photoshop;
  • It’s possible to have several copies of the script with different prefixes, just make a copy of the toggle_layer_visibility.jsx and edit <name> and prefixes fields of a copy;

Toggle Active Layers

Overview:

  • This script toggles visibility of selected layers.
    • This is useful to switch between two versions of a layer/groups of layers;
    • To check how layers or selected adjustment layers are affecting the lower layers;
../_images/03_2.gif

Usage:


Toggle Channel Visibility

Overview:

  • This script toggles visibility of channels with specific prefix.
../_images/04_2.gif

Usage:

Advanced:

  • Having a channel is useful if working with several windows of one document:
    • Channels may be visible only in one window;
    • Eyedropper doesn’t pick occasional colors from visible channels;
  • To change the prefix, add more prefixes or remove some, edit the toggle_channel_visibility.jsx file found in Scripts fodler of your Photoshop;
  • It’s possible to have several copies of the script with different prefixes, just make a copy of the toggle_channel_visibility.jsx``and edit ``<name> and prefixes fields of a copy;

Toggle Zoom

Overview:

  • This script toggles between two zoom levels;
  • It only works in Photoshop versions from CC2015 though;
../_images/05_2.gif

Usage:

Advanced:

  • with smartZoom option set to true Toggle Zoom will toggle between two last used zoom extremes. For example, you were at 25% zoom, calling the function will zoom to 300%. Next time you call teh function, you’ll unzoom back to 25%. If you unzoom to 16.67%, first call bring you back to 300%, second — to 16.67%.
  • with smartZoom option set to false Toggle Zoom will toggle zoom between current zoom value and value from zoom variable (default is 25%). Yes, I used a word zoom 5 times in this sentence.

Toggle Flip

Overview:

  • This script flips canvas horizontally (by default) or vertically while maintaining visual center of the document;
  • It only works in Photoshop versions from CC2015 though;
../_images/flip.gif

Usage:

Advanced:

  • with isHorizontal option set to true Toggle Flip will flip canvas horizontally;
  • with isHorizontal option set to false Toggle Flip will flip canvas vertically;
  • if you’re using a HDPI display (4K, 5K, Retina display on Mac), change scaleFactor to the value of your zoom factor. For Mac Retina it’s 2. For Windows get a percent value from Display Settigns and divide it by 100 (150% > 1.5);