Skip to main content
December 8, 2021
Open for Voting

Protect Tones keystroke

  • December 8, 2021
  • 2 replies
  • 219 views

A keystroke/shortcut for the protect tones check box in the dodge tool would be very helpful! I'm constantly clicking it on and off! 

2 replies

Stephen Marsh
Community Expert
Community Expert
December 8, 2021
If you had two dodge tool presets named "Dodge Protect Tones On" & "Dodge Protect Tones Off", a custom keyboard shortcut could be applied to each of the following installed scripts.
 
Dodge Protect Tones On:
// Dodge Protect Tones On
// Ensure that the Dodge tool is active
(r = new ActionReference()).putClass(stringIDToTypeID('dodgeTool'));
(d = new ActionDescriptor()).putReference(stringIDToTypeID('target'), r);
// Select tool preset named: Dodge Protect Tones On
executeAction(stringIDToTypeID('select'), d, DialogModes.NO)
var idselect = stringIDToTypeID( "select" );
    var desc272 = new ActionDescriptor();
    var idnull = stringIDToTypeID( "null" );
        var ref28 = new ActionReference();
        var idtoolPreset = stringIDToTypeID( "toolPreset" );
        ref28.putName( idtoolPreset, "Dodge Protect Tones On" );
    desc272.putReference( idnull, ref28 );
executeAction( idselect, desc272, DialogModes.NO );

 

Dodge Protect Tones Off:
// Dodge Protect Tones Off
// Ensure that the Dodge tool is active
(r = new ActionReference()).putClass(stringIDToTypeID('dodgeTool'));
(d = new ActionDescriptor()).putReference(stringIDToTypeID('target'), r);
// Select tool preset named: Dodge Protect Tones Off
executeAction(stringIDToTypeID('select'), d, DialogModes.NO)
var idselect = stringIDToTypeID( "select" );
    var desc273 = new ActionDescriptor();
    var idnull = stringIDToTypeID( "null" );
        var ref29 = new ActionReference();
        var idtoolPreset = stringIDToTypeID( "toolPreset" );
        ref29.putName( idtoolPreset, "Dodge Protect Tones Off" );
    desc273.putReference( idnull, ref29 );
executeAction( idselect, desc273, DialogModes.NO );

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

Stephen Marsh
Community Expert
Community Expert
December 8, 2021

I appreciate that this is a feature request. Until such a feature exists, you can do the following...

 

Create a tool preset for having the option turned on/ticked and another for the option off/inactive.

 

Create a new action set, record two actions, each with a single step – either selecting the on or off tool preset. The action options can then have an F-Key shortcut added to them.

 

Extending this further, a script could be used, with the added benefit of having custom keyboard shortcuts that may be easier to use than F-key shortcuts.