Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Based on the mosaic.lua script
- dt = require "darktable"
- dt.register_event("shortcut",
- function()
- dt.print_error("Will try to deinterlace now")
- for _,v in pairs(dt.gui.selection()) do
- command = "/home/polarfox/Dropbox/cr2hdr "..v.path.."/"..v.filename
- dt.print_error("this is the command: "..command)
- os.execute(command)
- dng=string.gsub(v.filename,"(.*).[cC][rR]2$","%1.DNG")
- dt.print("HDR saved to "..v.path.."/"..dng)
- dt.database.import(v.path.."/"..dng)
- end
- end
- ,"Duplicate as dual iso DNG")
Advertisement
Add Comment
Please, Sign In to add comment