Hallo,
is it possible to use a lua script in the map view?
All lua scripts I have found are written for the lighttable.
I have created the following test script. There is no error message, but the
button appears in the lighttable and not in the map view...
local dt = require "darktable"
local gettext = dt.gettext
dt.configuration.check_version(...,{3,0,0},{4,0,0})
-- GUI
button_copy = dt.new_widget("button")
{
label = "geodata",
tooltip = "geodata",
}
-- REGISTER
dt.register_lib(
"maptest", -- Module name
"map test", -- name
true, -- expandable
true, -- resetable
{[dt.gui.views.map] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER", 100}}, --
containers
dt.new_widget("box")
{
orientation = "vertical",
button_copy,
},
nil,-- view_enter
nil -- view_leave
)
Holger
___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to [email protected]