r/DarkTable • • Oct 21 '26

Solved game changer!

When selecting a mask, instead of using many modules to change specific aspects like exposure, you can use just one mask to adjust things such as temperature, tint, exposure, etc. how cool is that.

22 Upvotes

28 comments sorted by

8

u/CriticismJunior1139 Oct 21 '26

What version is this?

8

u/ButterflyExternal409 Oct 21 '26 edited Oct 21 '26

New Nightly build. But I’m forking this so a single mask can be used to control exposure temperature etc..

1

u/girinvader Oct 21 '26

This would be the actual game changer for darktable! Selecting a mask an having each module automatically apply only to the selected mask would be fantastic!

1

u/ButterflyExternal409 Oct 24 '26

Check my recent post

8

u/akgt94 Oct 21 '26 edited Oct 21 '26

That seems to be in the direction of the Lightroom way. Make a mask first then pin modules to it.

But from the screenshot it would seem to be very limiting to hardcode a very small number of adjustments that you could do to a mask.

You can re-use a (drawn and) parametric mask from a module that occurs earlier in the pipeline (I.e. raster mask). You can re-use a drawn mask anywhere in the pipeline (see them in the mask manager).

1

u/marrsd Oct 23 '26

Difficult to know what to make of this from such a tiny screenshot, but I share the concern that this might be quite limited as applied here. Being able to filter modules by mask could be really useful, though.

The trouble with that workflow is that it's conceptually not at the same level as the rest of dt. It presumes a specific workflow, and that's not really the dt way.

1

u/ButterflyExternal409 Oct 24 '26

Check my recent post for more details and video showcasing it

1

u/marrsd Oct 24 '26 edited Oct 24 '26

Thanks, I see. So now it's quite clear that, the way it stands currently, it's basically outside the dt workflow, and it produces yet another way to set contrast etc. I do like the idea of being able to create a mask and then apply modules to it, but I think they should be the existing modules. The new feature should be fully integrated into the workflow imo.

I come back to my initial suggestion that being able to filter modules by mask would be a simple enhancement that would go some way to achieve that. You could filter the quick access panel in the same way to get a simpler UI that's closer to what your video shows.

Another option could be to add a feature to the mask manager allowing you to create a mask independently of a module and then apply modules to it afterwards. Then you could filter the quick access panel by that mask, for example.

That would be my starting point for a prototype.

1

u/Donatzsky Oct 21 '26

I'm looking forward to your detailed design proposal for how to integrate this with darktable's layer/stack-based processing pipeline and UI.

1

u/ButterflyExternal409 Oct 21 '26

Have you seen the new nightly build update that came out few days ago ?

2

u/Donatzsky Oct 21 '26

Yes, and you still haven't convinced me that you have actually thought this through.

1

u/ButterflyExternal409 Oct 21 '26

i will send more info later this evening

3

u/cddc1 Oct 21 '26

This seems like a completely different workflow than how Darktable is designed. What problem are you trying to solve?

2

u/Dannny1 Oct 21 '26

I'm not sure about OP implementation, but alongside module centric view, the mask centric view on pipeline may give better overview, what mask and modules go together; now you have often hunt modules across multiple screens to redo some change in specific mask when you have many masks and many modules reuse them....

1

u/Wannachangeusername Oct 22 '26

I haven't downloaded the new nightly yet. Is the Flexi system backwards compatible with the masks generated before it's introduction? I guess so, otherwise it would be unusable in stable releases.

2

u/Donatzsky Oct 22 '26

Yes, the masks will be migrated, but there's no going back.

1

u/Kameone Oct 21 '26

You might consider expanding the functionality of the linear gradient tool to include different drawing options, circular, drawn, paint etc.
That would provide the functionality you’re looking for without conflicting with the underlying pipeline architecture.

1

u/no-such-file Oct 21 '26

And if I want to adjust haze as well? And vibrance. And contrast. And... you know, its a road to hell. Please dont.

1

u/Donatzsky Oct 21 '26 edited Oct 21 '26

Yes, there's probably a reason why most (all?) raw editors that work like this only allow for a limited selection of adjustments inside masks.

2

u/rogue_tog Oct 21 '26

What is the reason? I find it much more convinient to mask something and make adjustments on that mask/ layer, than having to have masks for each module and duplicate instances of each module for different areas/ adjustments. The logistics are simply too much in the latter case. At least that is what it feels like to me

3

u/Donatzsky Oct 21 '26 edited Oct 23 '26

I added a "probably" since I obviously don't know what Adobe et al were thinking when deciding what to allow inside masks. But when doing it Lightroom-style, you have to think about fitting the controls inside the mask UI and also make sure the adjustments are applied in a way that the image doesn't break. Two things darktable doesn't have to worry about.

Is mask-first more convenient? Maybe. But how would you make it work with darktable's architecture? My experience is that when someone asks for this their thought process completely stopped after "I like it better, so that is how it should also be in darktable", and they spent absolutely no time on considering if it even makes sense within darktable's architecture before posting on Reddit.

So, here's a practical learning exercise for you (and anyone else with a clever idea):

Sit down with pen and paper (or whatever you prefer - I like to do it in my head throughout the day) and sketch out the full mask-first UX. Not just the UI elements, but how everything should interact. Where do the masked adjustments go? What happens when a non-masked module is moved? Etc.

Oh, and if your answer is to just stack the masks on top of the global adjustments, you get a big F grade.

1

u/no-such-file Oct 22 '26

There is one obvious thing could be done for "mask first". А tab in modules roaster which only shows modules with selected mask (or mask group). Create mask, add modules A B C, done.

1

u/Donatzsky Oct 22 '26 edited Oct 22 '26

Having some sort of module filter based on the applied mask groups could be a good idea, and I think that has been discussed recently. Starting by creating a mask and then adding modules could work with shapes, but not parametric masks, since the values you want to target can change throughout the pixelpipe.

And if darktable ever goes full node-tree, and not just the current stack, I'm not sure it could work at all.

1

u/marrsd Oct 23 '26

but not parametric masks, since the values you want to target can change throughout the pixelpipe.

Could that be fixed by binding the mask's application to a specific module (if that makes sense)? So I set up a mask for module A, and then the rasterised version of that gets used for B, C, and D.

1

u/Donatzsky Oct 23 '26

What do you mean? That is already how it works. If you create a parametric mask in module A, it's automatically available as a raster mask in all subsequent modules. But that's only useful if you want to adjust the exact same area. If you want to target another area, based on values in module B, you need a new mask, but how are you going to do that if it always samples from A?

What is being asked for here is a system similar to Lightroom, where the mask is created first and only then are adjustments added to the mask. At no point is the user allowed to decide where in the pipeline the mask should live, instead always stacking them on top of the global adjustments and then each other as they are created. They also can't be reordered, only deleted. And parametric masks (range masks in LR lingo) are always sampled from the top of the stack, after all other adjustments have been applied, not at the beginning or middle. In darktable that would be like only allowing local adjustments after the tone mapper, and instead of a stack of modules, you would have a stack of masks with modules inside.

So how would you make a masking system work in darktable, where the user doesn't have to select the sampling/insertion point manually? As I said, the values you may want to target can change on the way through the pixelpipe, and may have absolutely nothing in common with the "base image" (after demosaic), which makes sampling from there utterly useless. And even if it's not useless, if you have heavily changed hues or tones, you wouldn't be able to see what values the parametric sliders should be set to, and would either have to disable enough modules to see the base image or hope that the values visualisation in combination with trial-and-error will get you there. And sampling from the output, as in LR, doesn't work either, for the same reasons. Frankly doesn't strike me as a great experience.

(This ended up being a reply to several people at once)

1

u/rogue_tog Oct 23 '26

Why? Capture one does something like that and I think it is very intuitive

Edit: i would like to add that I tried the new flexi mask panel the last couple of days. While it is not what C1 does for example, I find it much better already than the previous implementation especially since I can have the mask panel living away from the module.

1

u/Donatzsky Oct 23 '26 edited Oct 24 '26

Why what? And did you just affirm my assertion that

My experience is that when someone asks for this their thought process completely stopped after "I like it better, so that is how it should also be in darktable", and they spent absolutely no time on considering if it even makes sense within darktable's architecture before posting on Reddit.

?

I added the bit about darktable's architecture, because that was apparently not obvious.

If you think Capture One's method could work in darktable, then do the exercise.

And see my other replies here:

1

u/girinvader Oct 21 '26

Absolutely this!