Actually, creating a new one (jpeg format dt.new_format(jpeg)), it takes panel values which I can read after.

Anyway... I need to use panel setting in some post-elaboration and the above way can be useful.

However I can't still get "allow upscaling" selection..... no way to get it??

thanks.


Il 06/07/23 17:24, William Ferguson ha scritto:

Reading the value wouldn't serve a useful purpose, so it's not implemented.

The purpose of reading the value would be to see if it's set correctly and if not then set it correctly.  So, save yourself the code of reading and testing the value, and just set it to the value you've decided is correct.

Or, trust the user to set the value they want.

On Thu, Jul 6, 2023 at 4:29 AM Zener <zene...@gmail.com> wrote:


    Hello...

    I can't get, in a lua script, the value of "quality" set on the panel.

    I can set it as an export parameter of a
    dt_imageio_module_format_data_jpeg type
    (dt_imageio_module_format_data_jpeg.quality) but i don't know how
    to get the value set from the panel.

    I use a darktable.register_storage
    
(https://docs.darktable.org/lua/stable/lua.api.manual/darktable/darktable.register_storage/)
    function and I'd like  to read the value of file format quality
    inside the "initialize" sub function.

    Thank you.

    l


    ___________________________________________________________________________
    darktable developer mailing list to unsubscribe send a mail to
    darktable-dev+unsubscr...@lists.darktable.org
    <mailto:darktable-dev%2bunsubscr...@lists.darktable.org>


___________________________________________________________________________ darktable developer mailing list to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org
___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

Reply via email to