On Sat, Apr 9, 2022 at 1:32 PM Christian Birzer < christ...@christianbirzer.de> wrote:
> Hi everybody, > > I'd like to create a lua script that adds a new storage target that will > export the image(s) into a directory (just like the file target) and do > some additional things after that (add a selectable category tag, open in > file manager/explorer, etc.). The goal is to make targets to export for a > "publishing service" (facebook, instagram, etc.) and put the exported > images into a dedicated folder and add the category to mark them as > published on that service. (some kind of Lightrooms publishing > services....;-) ) > > My idea is to have a export preset for each service because then I could > store the file size, output folder etc. in the presets. But I have no idea > how to store the additional fields that come with the new storage into that > preset. All scripts I tried so far do not support this. Is it possible at > all? Or is there something like a "re/store preset hook" that allows me to > load/save my own stuff according to the preset name? > > I know that the script usually store their stuff in the > preferences/darktablerc file while the presets are stored in the database. > So maybe this won't work at all. > > Does anyone have an idea if/how I could realize this? Ok, I could add a > completely new lib that does the export and give them the needed controls > for the file size and destination. But that would eventually double the > export and preset mechanism completely. > > I did it by setting up presets inside the exporter. It results in a storage preset to set the export settings, then a preset within the storage to set any other parameters you want to use. See https://github.com/wpferguson/extra-dt-lua-scripts/blob/master/postsharpen.lua > Thanks in advance! > Christian > > -- > Christian > birzerchrist...@christianbirzer.dewww.christianbirzer.dewww.500px.com/ChristianBirzerwww.flickr.com/ChristianBirzerwww.facebook.com/Birzer.Christianwww.instagram.com/birzer.christian > > > ___________________________________________________________________________ > 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