Ok, it is a really simple one and mostly copy/pasted from the example, but
here you go :)

If the dir/file does not exist simple create it.

Copy the following content to ~/.config/darktable/lua/hugin.lua
---
dt = require "darktable"
dt.register_storage("module_hugin","hugin panorama",

function(storage,image,format,filename,number,total,high_quality,extra_data)
    dt.print(tostring(number).."/"..tostring(total))
   end,
   function(storage,image_table,extra_data)
    dt.print_error("Will try to stitch now")
    command = "hugin "
    for _,v in pairs(image_table) do
        command = command..v.." "
    end
    dt.print_error("this is the command: "..command)
    os.execute(command)

    dt.print("Hugin Pano in "..dt.configuration.tmp_dir)
    end
)
---
and add
---
require "hugin"
---
to ~/.config/darktable/luarc

After a new start of darktable you can now select multiple images in
Lighttable and go to "export selected" where
the new entry "hugin panorama" should be present.

The script could be improved, but for my needs it was sufficient.

Hope that helps,
Martin

2015-07-02 14:29 GMT+02:00 Emmanuel Lacour <elac...@home-dn.net>:

> Le 01/07/2015 15:58, Martin Schoepf a écrit :
> > Hi,
> >
> > I usually perform the same actions as Steve in 1.
> > and have a lua script written, that exports the images as jpgs and start
> > hugin with the exported jpgs.
> > Than continiue with step 4. and 5. from Emmanuel.
> >
> > If you want I could share the Lua-script.
> >
> >
> I still didn't had time to look at lua in DT, your sript would be
> welcome to start!
>
>
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Darktable-users mailing list
> Darktable-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/darktable-users
>
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Darktable-users mailing list
Darktable-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-users

Reply via email to