auto applied style

Hi

Once upon a time I managed to define a default set of modules and their settings that is applied to an unedited image on first load into the darkroom.

Amo. it applies a frame to the image.

I’d like to redefine this set of default modules/settings - but I can’t figure out how to do it, or how I did it the first time.

How is that done?

To create: see under auto apply this preset to matching images.
https://darktable-org.github.io/dtdocs/en/darkroom/processing-modules/presets/#controls

To manage existing presets:
https://darktable-org.github.io/dtdocs/en/preferences-settings/presets/

1 Like

Ah - I think I get it now.

For each module preset I can specify if it should be auto-applied to matching images. If I define matching images with wild-cards - any new image will get the module with the preset-settings applied!

I was looking for a way to define a set of modules.

Thanks!

I don’t think you can auto-apply styles out of the box, but Lua scripts can do that, see: https://darktable-org.github.io/luadocs/lua.scripts.manual/scripts/contrib/autostyle

Hi,
unfortunately at least for me here, this link “https://darktable-org.github.io/luadocs/lua.scripts.manual/scripts/contrib/autostyle” is dead.

I also was looking to any kind of manual/explanation how to use the module, but am currently not able to understand how to use and configure…

luadocs should be lua/stable

Sorry. It seems the links on the page
GitHub - darktable-org/lua-scripts are dead.

The script is here: lua-scripts/contrib/autostyle.lua at master · darktable-org/lua-scripts · GitHub

There is a bit of documentation at the top of the file.

https://docs.darktable.org/lua/stable/lua.scripts.manual/scripts/contrib/autostyle/

Thx all,

at least I now seem to be able to invoke the script.

Unfortunately I still seem to have issues to use it to activate my desired script at import.
Am still trying to figure out what is happening…
Import stops and darktable needs to be killed to resolve.
I need to further look into this.
It stops with “Add to library is not responding” when a try to import with the new camera-specific style for my EOS R7…

Restarting dt shows, that the image actually has been added to the library, but without the desired auto-added style …

If I use “copy and import” all works as expected. Using “add to library …” to get the image into darktable stalls the program …

hmmmm ?

You can look the official/apply_camera_style.lua script which does what you’re trying to do, to see how it’s done. Or you could just enable and let it do it for you.

Thank you for the hint, Bill.

The official script works as expected. :wink:
If I have time in the next days, I will see if I can understand what’s done with the scripts and spot a difference … (I am not a programmer though … :wink: )

Have a nice XMAS!

1 Like