sure, start by the 1.6 usermanual, there is a section on using lua, then
gooogle around for tutorials.
I would advise making a backup of your DB if you are developing a lua
script.
the following (untested) script should add a new shortcut to select all
duplicates from your database. you can then just click the remove button
(or add a label, or whatever you want)
Again, THIS IS UNTESTED, please back up your DB and use it to learn lua.
local dt = require "darktable"
table = require "table"
local function selectDups()
local selection = {}
for _,image in ipairs(dt.database) do
if ( image.duplicate_index > 0) then
table.insert(selection,image)
end
end
dt.gui.selection(selection)
end
dt.register_event("shortcut", selectDups, "Select all duplicate images")
l
On Tue, Jun 30, 2015 at 3:33 PM, <darkta...@911networks.com> wrote:
> On Tue, 30 Jun 2015 12:29:29 +0200
> jeremy rosen <jeremy.ro...@enst-bretagne.fr> wrote:
>
> >duplicate info is available in lua, so writing a lua script to
> >remove all dups should be trivial... just saying
>
> I have never used lua. Any good resource to learn?
>
> --
> sknahT
>
> vyS
>
>
> ------------------------------------------------------------------------------
> 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