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
This commit is contained in:
supertobi
2015-09-08 15:21:43 +02:00
parent 5909765e2c
commit 3033c52ff4

View File

@@ -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 = ""