Hi, I am currently developing a lua extension to do sharpening of exported images. The basic features are working, but some questions remain:
*) Slider: is it possible to create an integer slider with lua (like the quality slider in jpeg export - default sliders have fractions, a quality slider should display an integer percent value)? *) Combobox: can it be made language agnostic? (currently the selected text in the combo-list is what I get back when I query the combobox - this breaks (or needs extra overhead) when the language is changed, there is no way to get the number of the selected element ). *) is there an official way to substitute darktable variables in strings (as in the export file selector box. e.g. $(FILE_NAME))? *) is there a way to mimic the file selector box of the file-on-disk export option? it differs radically from the lua fileselector.. *) how can I build a separator that looks like the one in the export dialog (eg a line with text over it)? The default lua separator just provides some vertical space. *) any serious work with lua needs a lot of additional functions (string functions, filesystem,...). Are there any conventions to add/create a set of default libraries? How to best share these libraries with other users? *) is there a way to add lua variables to a style? If a user creates an export style with my (new) 'export-sharpened' function he should get the values he stored earlier. *) is there a way to read/set/change standard variables in the (export) module using lua? I would like to read the current 'max size' setting or modify the jpeg 'quality' setting. *) how should I report errors to the user? I can use dt.print, but if it's a more permanent error it whould be nice to have some sort of popup that has to be acknowledged by the user. These are a lot of questions for such a little program that only provides an export sharpening feature. But lua could be the key to extend and change dt in a lot of wonderful ways. Thanks for your help! -- Richard Schwaninger 6800 Feldkirch PGP-Fingerprint: 3FFF77124A83432FD36049A26AEBD5978AC9BBAC ___________________________________________________________________________ darktable developer mailing list to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org