From 3033c52ff4247b01e0e30c3ce76d5b79e69d5df5 Mon Sep 17 00:00:00 2001 From: supertobi Date: Tue, 8 Sep 2015 15:21:43 +0200 Subject: [PATCH] Three small fixes (komments and avoid having a global variable) - a comment about needing hugin installed - it's not the lua version that we check, it's the DT API version - declare "local img_list" here, and avoid having a global variable --- contrib/hugin.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/contrib/hugin.lua b/contrib/hugin.lua index 38fb6ec..95c0aa5 100644 --- a/contrib/hugin.lua +++ b/contrib/hugin.lua @@ -23,6 +23,9 @@ HUGIN Add a new storage option to send images to hugin. Images are exported to darktable tmp dir first. +ADDITIANAL SOFTWARE NEEDED FOR THIS SCRIPT +* hugin + USAGE * require this file from your main luarc config file. @@ -31,18 +34,18 @@ This plugin will add a new storage option and calls hugin after export. dt = require "darktable" --- should work with lua version 2.0.0 +-- should work with darktable API version 2.0.0 dt.configuration.check_version(...,{2,0,0}) --- list of exported images -local img_list - dt.register_storage("module_hugin","Hugin panorama", function(storage, image, format, filename, number,total,high_quality,extra_data) dt.print("Export to hugin " .. tostring(number).."/"..tostring(total)) end, function(storage,image_table,extra_data) --finalize + -- list of exported images + local img_list + -- reset and create image list img_list = ""