Skip to main content
thompsoncd
Participating Frequently
October 31, 2022
Answered

Dodge/Burn exposure setting - Shortcut Keys?

  • October 31, 2022
  • 3 replies
  • 659 views

I’m programming my Xeneclab Quick Keys device and need a shortcut key to enter the "exposure" field of dodge/burn. 

Or even if I can get into the "brush angle" field, I can then shift-tab back to the exposure field. 

Does anyone know how I might do this?  

This topic has been closed for replies.
Correct answer Jeff Arola

On a traditional keyboard all one has to do is hit the Enter/Return key to highlight the Exposure field with Burn/Dodge Tools.

Don't know if your device has that ability to mimic the Enter/Return key or not.

3 replies

Jeff Arola
Community Expert
Jeff ArolaCommunity ExpertCorrect answer
Community Expert
October 31, 2022

On a traditional keyboard all one has to do is hit the Enter/Return key to highlight the Exposure field with Burn/Dodge Tools.

Don't know if your device has that ability to mimic the Enter/Return key or not.

thompsoncd
Participating Frequently
October 31, 2022

I tried EVERYTHING except the simple and obvious. That worked Jeff, and it's such a simple solution.

Thanks for taking the time to respond!!!

Legend
October 31, 2022

The software of such keyboards rarely allows you to realize all your desires, so third-party software and various tricks are indispensable (I write as someone who has been using the XK-12 Jog & Shuttle for about 10 years). 

You can write a script that will iteratively increase or decrease the exposure value (the script can be hung on a hot key in Photoshop and activated from the keyboard)

/**
 * increase exposure value:
- regular launch +1%
- launch with the shift pressed + 10%
 */
#target photoshop;
var s2t = stringIDToTypeID,
    t2s = typeIDToStringID;
(r = new ActionReference()).putProperty(s2t('property'), p = s2t('tool'));
r.putEnumerated(s2t('application'), s2t('ordinal'), s2t('targetEnum'));
var tool = executeActionGet(r);
var t = t2s(tool.getEnumerationType(s2t('tool')));
if (t == 'burnInTool' || t == 'dodgeTool') {
    var cur = tool.getObjectValue(s2t('currentToolOptions')).getInteger(p = s2t('exposure'));;
    (d = new ActionDescriptor()).putInteger(p, ScriptUI.environment.keyboardState.shiftKey ? (cur + 10 > 100 ? 100 : cur + 10) : (cur + 1 > 100 ? 100 : cur + 1));
    d.putBoolean(s2t('useScatter'), tool.getObjectValue(s2t('currentToolOptions')).getBoolean(s2t('useScatter')));
    (r = new ActionReference()).putClass(s2t(t));
    (d1 = new ActionDescriptor()).putReference(s2t('target'), r);
    d1.putObject(s2t('to'), s2t('target'), d);
    executeAction(s2t('set'), d1, DialogModes.NO);
}


/**
 * decrease exposure value:
- regular launch -1%
- launch with the shift pressed -10%
 */
#target photoshop;
var s2t = stringIDToTypeID,
    t2s = typeIDToStringID;
(r = new ActionReference()).putProperty(s2t('property'), p = s2t('tool'));
r.putEnumerated(s2t('application'), s2t('ordinal'), s2t('targetEnum'));
var tool = executeActionGet(r);
var t = t2s(tool.getEnumerationType(s2t('tool')));
if (t == 'burnInTool' || t == 'dodgeTool') {
    var cur = tool.getObjectValue(s2t('currentToolOptions')).getInteger(p = s2t('exposure'));;
    (d = new ActionDescriptor()).putInteger(p, ScriptUI.environment.keyboardState.shiftKey ? (cur - 10 < 1 ? 1 : cur - 10) : (cur - 1 < 1 ? 1 : cur - 1));
    d.putBoolean(s2t('useScatter'), tool.getObjectValue(s2t('currentToolOptions')).getBoolean(s2t('useScatter')));
    (r = new ActionReference()).putClass(s2t(t));
    (d1 = new ActionDescriptor()).putReference(s2t('target'), r);
    d1.putObject(s2t('to'), s2t('target'), d);
    executeAction(s2t('set'), d1, DialogModes.NO);
}
thompsoncd
Participating Frequently
October 31, 2022

Thanks Jazz-y, I was thinking of going down that route, but then Jeff suggest I just hit "enter" after selecting either the dodge or burn tool. It works!

Mylenium
Legend
October 31, 2022

Unless the device is able to emulate a mouse-click that activates one of those fields I don't think it's possible. Those controls are contextual and the up/ down keys to change values only work when the tool is active and the input field is active. For most tools you can directly type in values into whatever is their default active parameter field, though, so perhaps make it a habit to do it that way.

 

Mylenium

thompsoncd
Participating Frequently
October 31, 2022

Thanks for the response Mylenium, I was thinking exactly as you were. But Jeff suggested that after I select the dodge or burn key, I simply hit "enter." And it worked.

 

Thanks for taking the time to respond!