Module renaming and moving in preset?

I’m reading through the new version of the manual (I do this with every new release, to refresh my mind as well as catch up on new features). I’m currently reading through the diffuse or sharpen module. I liked the sound of the Sharpen demosaicing (no AA filter) preset, and gave it a try. After playing with the iterations count (originally I could not see the effect with only 1 iteration, it’s quite subtle), I liked it as it stands, and so created a new preset which is identical, but gets auto-applied. Before doing this however, I moved the module to before the Input colour profile module (as advised in the manual), and renamed it.

Trying out the preset on a new image, I found out that the module name and position of the module were not preserved by the auto-applied preset. I’ve created a style instead, but as far as I know, styles cannot be auto-applied (I’d love to learn otherwise). Is there a way to do this automatically?

No you cannot auto-apply a style, though you can select multiple images in the lighttable and apply it to all at once.

Thanks. That seems like it will work fine, once I get into the habit.

I’ve also found that I need to actually create a new instance of the module first, before moving it and renaming, as otherwise, after the style is applied, I can no longer find out what the original placement of the module is.

You can save your custom pipeline order as a preset of the module order utility module.

https://docs.darktable.org/usermanual/3.8/en/module-reference/utility-modules/darkroom/module-order/

If you set that preset to auto-apply, you can basically override darktable’s defaults. I’m not sure if you can include it in a style, and I’m not at my desktop now. If I remember correctly, there’s a Lua script you can use to apply styles automatically. Maybe this one?

https://darktable-org.github.io/luadocs/lua.scripts.manual/scripts/contrib/autostyle/

I guess I could use that, specifying an ISO >= 64 (i.e always). But I can’t find out where the lua configuration is, or how to tell it that the line should apply to the autostyle script.

The auto-apply is for the preset. The Lua script has to be installed first. There is a script manager / installer which is normally shown when you start darktable for the first time. If you don’t see it, check your preferences:

https://docs.darktable.org/usermanual/3.8/en/preferences-settings/lua-options/

The tool itself is documented here:

https://darktable-org.github.io/luadocs/lua.scripts.manual/scripts/tools/script_manager/

I don’t use Lua scripts, so won’t be able to help more.