Scripts¶
Toggle Layer Visibility (by name)¶
Overview:
- This script toggles visibility of layers with a specific prefix

Usage:
- Assign script to a hotkey;
- Defaul prefixes are:
hide
,cont
and prefixes of Perpsective Tools:perspective
andparallel
;
Advanced:
By default the script will ignore layers with color labels (I use this to have different perspective grids and sketch layers in a document), this option can be turned off in settings: use the Toggletator Settings script to change it and modify prefixes;
Toggle Layer Visibility (by color label)¶
Overview:
- This script toggles visibility of layers with a specific color label

Usage:
- Assign script to a hotkey;
- Default color label is Red;
Advanced:
Use the Toggletator Settings script to change the color label to toggle;
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;

Usage:
Toggle Inactive Layers¶
Overview:
- This script toggles visibility of layers that aren’t selected (that are currently visible).
- This is useful to check specific layers without context;
- To find hidden layers in the document;
Usage:
Toggle Channel Visibility¶
Overview:
- This script toggles visibility of channels with specific prefix.

Usage:
- Assign script to a hotkey;
- Defaul prefixes are:
hide
andcont
;
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 prefixes, modify the settings via the Toggletator Settings.
Toggle Zoom¶
Overview:
- This script toggles between two zoom levels;
- It only works in Photoshop versions from CC2015 though;

Usage:
- Assign script to a hotkey;
- Change options with the Toggletator Settings;
Advanced:
- with a
Smart Zoom
option turned ON 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 the 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 a
Smart Zoom
option set to OFF Toggle Zoom will toggle zoom between current zoom value and value fromToggle to zoom
option (default is 25%). Yes, I used a word zoom 5 times in this sentence.
Toggle Flip¶
Overview:
- This script flips view or canvas horizontally (by default) or canvas vertically while maintaining visual center of the document;
- It only works in Photoshop versions from CC2015;

Usage:
- Assign script to a hotkey;
- Change options with the Toggletator Settings;
Advanced:
- Set
Type of flip
option to set flipping canvas horizontally/vertically or flip view horizontally (CC2019+); - if you’re using a HDPI display (4K, 5K, Retina display on Mac), change
Display Scale Factor
option to the value of your zoom factor. For Mac Retina it’s200
. For Windows get a percent value from Display Settigns; - By default the visual center of the document is located in the center of the active window but it’s possible to shift it using
Offset Center
values: for instance if you work on a particular side of a screen in Fullscreen mode; - Since it’s impossible to set rotation of a document using a script, document rotation will be reseted.
Toggle Brush Blend Mode¶
Overview:
- This script toggles Brush Tool between two defined blend modes;
- Basic usecase would be
Normal
andErase
(defaul settings); - If current tool isn’t a Brush Tool, Brush Tool will be selected;
- It only works in Photoshop versions from CC2014 though;

Usage:
- Assign script to a hotkey;
- Change options with the Toggletator Settings;
Toggle Brush Color Dynamics¶
Overview:
- This script toggles Color Dynamics with particular settings on and off;
- If current tool isn’t a Brush Tool, Brush Tool will be selected;
- It only works in Photoshop versions from CC2014 though;

Usage:
- Assign script to a hotkey;
- Change options with the Toggletator Settings;
Toggle Brush Tilt¶
Overview:
- This script toggles Angle Control in Shape Dynamics setting of a brush between two defined options;
- The default setting toggles between current brush Angle and Pen Tilt;
- If current tool isn’t a Brush Tool, Brush Tool will be selected;
- It only works in Photoshop versions from CC2014 though;

Usage:
- Assign script to a hotkey;
- Change options with the Toggletator Settings;