Hello Jeremy, I tested your script with newest git master. Here is what I found:
1) Version check line #31 is not working LUA ERROR : /home/matthias/.config/darktable-1.7//luarc:31: bad argument #1 to 'check_version' (string expected, got nil) stack traceback: [C]: in function 'check_version' /home/matthias/.config/darktable-1.7//luarc:31: in main chunk 2) The frequent crashes are just too much to test it. It crashes most of the time!! *** Error in `/opt/darktable-git/bin/darktable': double free or corruption (out): 0x0000000002ab0260 *** /home/matthias/bin/darktable-git-starter.sh: line 3: 19762 Aborted /opt/darktable-git/bin/darktable --configdir /home/matthias/.config/darktable-1.7/ $* In the meantime I started to work on my script to include it into DT 1.6.6 but I am really struggling with funtcions like dt.preferences.register and others. May be you can help me: Q1) I want to create new "LUA options" to ask for the export directory where the JPGs are located: dt.preferences.register("pdf_export", "jpg_export_dir", "string", "PDF export: Export directory", "The subdirectory where the jpg/png files are located.\nRelative to the fim roll.", jpg_dir ) But the variable jpg_dir is always empty regardless what I do. How can I retrieve the string value of the option jpg_dir? Q2) I want to create a new "storage" function to trigger the PDF creation: dt.register_storage("TEST PDF" ,"TEST PDF", nil, export_callback) But when calling this function DT automatically creates new JPGs in ~/.local/tmp. How do I prevent that? I only want to work on existing jpgs. Thank you for your help. Matthias ------------------------------------------------------------------------------ _______________________________________________ darktable-devel mailing list darktable-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/darktable-devel