More options in Lua

I have been playing with Lua scripts a lot lately. It helps to customize darktable for specific task. And so far it is very nice and interesting. I have created for instance a lua script that searches the library for assigned Lut’s that are missing.

I’m working on several projects, but there are of course limitations. So I have 2 request (I guess the first is much easier then then second):

  1. Have an image widget in a pannel (for icons or other). I have been searching the docs, but unless I am mistaken this is currently not supported.

  2. Have a the option to create a modal dialog.

I recon that 2 might be a huge complex thing… but having 1 would be very helpful.

Thanks

You can assign images to buttons. Without a better idea of what you’re trying to do I don’t have a better answer.

When I first started using Lua I wanted a modal dialog too. After using Lua for a long time, I don’t miss it all and haven’t encountered a situation that I couldn’t solve in another way.

I want to show a specific part of the selected photo in the panel.

Lua doesn’t support that. That would be a view surface and I’m not sure that trying to support it from a scripting language would be practical especially if any user interaction is desired.