Is it possible to create a shortcut to turn on/off framing module

I have looked at the manual but am unable to work out how to create a shortcut to turn on/off the framing module. I just want to turn the framing module on to its default value to place a white border around the image to assist with setting exposure and contrast. I do know about the lightbulb icon to do this but that reduces the size of the displayed image and the framing module is a nicer workaround for me. I just want to be lazy (efficient) and create a simple keyboard shortcut to turn on and off the framing module. I guess if I can work this out for the framing module there would be other modules I will also create shortcuts for to turn on to the default settings.

I am on a windows 11 computer using the latest weekly build of 4.9.

Are you looking for the CTRL+B shortcut ? I use it all the time.

Thanks for the reply. I am not wanting to go into the assessment mode via ctrl B. I want to create shortcuts to turn off and on modules such as the framing module. I am just unsure how to create such a shortcut despite looking at the manual and searching the forum

Hi! While I’ve able to assign a keyboard shortcut to a preset like “white frame 10%” (which is the default), I could not find the way to make it as a switch to turn on and off the frame using the same shortcut.
Workaround: create a 2nd preset that reduces the frame to 0%?

Afaik module toogles can only achieved by applying shortcuts to predefined lua actions.

In case of the framing module, the related lua command looks like this:

dt.gui.action("iop/borders", "enable", "toggle", 1,000, 0)

It might be useful to create a lua script that provide this functionality for all available modules.

edit: nevermind

Double click the module name in the shortcut preferences, add your shortcut, and change the element to be “enable” and effect to be “toggle”.

4 Likes

I totally missed that. Thanks for pointing that out

Thanks for your response. I tried this but then the keyboard shortcut takes me to an expanded view of the framing module without turning it on. However, maybe the best work around for me at this stage is to place the framing module in the same list as the modules that I use for setting exposure and tones. Then it is conveniently located and a single mouse click will activate or de-active the module. Still, there are a few modules which I would like to be able to activate with a keyboard shortcut. For example, denoise (profiled) and lens correction would be a couple.

It would be useful for some “average users” to provide feedback on what approach could make this kind of functionality more understandable to them and others.

The “preferences/shortcuts” screenshot above has a long text at the top explaining that you should really be using the “visual shortcut mapping” mode, which is much easier for this kind of thing. Maybe that text is too long, so it doesn’t get read?

If the advice were followed, you could have achieved what you want with two mouse clicks, a mouse move and one key press:

  1. In the darkroom, click on the “keyboard” icon (to the left of settings). This switches to mapping mode.
  2. hover over the “enable” button of the framing module (the one you normally toggle directly with the mouse and that you now want to set up a shortcut to. Any other thing you might click, buttons, dropdowns, sliders etc, can probably be assigned a shortcut in the same way, elements in the center view, like masks, excluded).
  3. press the key you want to assign.
  4. right click to switch off mapping mode (or continue at step 2 to assign more shortcuts).

If you now hover over the button, the tooltip that appears should show the new shortcut.

Maybe stepwise examples like this should be added to the manual? Videos?

2 Likes

I have followed your instructions here and it worked perfectly. I just reread ‘the text’ and for the average user like me the text doesn’t make much sense. I am not sure how to rewrite it so it does. But you have answered my question beautifully. Thanks heaps.

A pity. It seems like everybody in this thread, and probably the majority of users, are missing out on even the mildly advanced features of the shortcut system, and clearly not from lack of interest or effort. And then I’m not even talking about extended shortcuts or fallbacks.

I totally agree. It is a challenge to make this feature easily understood for the average user. Now you have explained it to me I can see how easy it is to do, but I had read the manual and felt none the wiser about how to achieve what I wanted. Thanks to this forum and yourself I am on the right track. I will invest some more time looking at that section of the manual and see if it makes sense to me now that you have helped.

And if not, it will probably be a good idea to suggest an alternate text :slight_smile:

You probably missed to switch the element and effect in the table.
But since you have the answer using the mapping button, it’s even easier.

If I can come up with a better text I will propose it. It can be very hard to write user guides and have them understood by the average user. Maybe when I read the user guide section on short cuts it will make more sense now. I wonder if putting an example of creating shortcuts would help. But I wouldn’t expect the developers to do this, but maybe that is where an average user such as myself may be able to contribute. Before I do that I will need a more complete understanding of shortcuts. With practice I hopefully will get there. For my use on windows I am now using the alt key combined with a logical letter to activate certain modules to their defaults. Modules such as lens correct. denoising etc would be convenient as shortcuts for my workflow.

1 Like