Hi,
As I often do rating, than click view only rejected and select them (ctrl+a)
to delete images, I wanted to write a small Lua script to do select and view
only rejected images.
However I don't know howto get an images table from the current view and to
show only rejected or selected images.
What I've now is this:
dt = require "darktable"
local function callback_rejected()
local curr_images = {}
local selection = {}
curr_images = dt.gui.selection()
for _,image in ipairs(curr_images) do
if image.rating == -1 then
table.insert(selection,image)
end
end
dt.gui.selection(selection)
end
dt.register_event("shortcut",callback_rejected,"select all rejected images")
I would be happy about any advise,
Christian
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Darktable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-users