If it's going to act directly on RAWs, then you can just use the
darktable.gui.action_images table.  If you need to do an export behind the
scenes, then look at
https://github.com/wpferguson/lua-scripts/blob/plugin/lib/libPlugin.lua.
There are two functions in there, libPlugin.build_image_table and
libPlugin.do_export that build an image table similar to the exporters,
then do_export creates the formats and exports the images.  I wrapped a UI
around them, but you could use them directly and just define which format
to export.

Bill

On Mon, Nov 14, 2016 at 12:29 PM, Pascal Obry <pas...@obry.net> wrote:

>
> Hi William,
>
> > The current way to export a set of RAWs and pass them on for further
> > processing to an external process is to create a storage instead of a
> > lib. Examples of this are contrib/hugin.lua and contrib/gimp.lua.
>
> I've done that in some other plug-ins indeed. But here I really want to
> create an HDR lib which supports RAW. I'd like a lib here as the fact
> that there is export should be hidden. That's not the point for end
> users and the lib will allow a better visibility in the UI.
>
> --
>   Pascal Obry /  Magny Les Hameaux (78)
>
>   The best way to travel is by means of imagination
>
>   http://www.obry.net
>
>   gpg --keyserver keys.gnupg.net --recv-key F949BD3B
>

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

Reply via email to