Hi, I'm not a seasoned DT+LUA guy.
The LUA API [0] tells that dt.collection only returns a numerical index not the image ID and filtering does not change the collection? However, it looks like if there is something strange. Because if all images of a filmrolle are displayed and not filtered e.g. by rating, the same ID will be returned for action images and collection. In this case dt.collection contains all images of my test library.db. As soon as a filter is applied dt.collection does not return the image id any more. It returns something wired or at least the same number of images but not the filtered images. What should be dt.collection for? Christian [0] http://www.darktable.org/lua-api/index.html.php#darktable_collection Am 2016-01-07 12:56, schrieb dt-l...@stefan-klinger.de: > On 2016-Jan-07, dt-l...@stefan-klinger.de wrote with possible > deletions: >> label. To observe the effect, just have a collection *not containing* >> an image with the ID 1. For this example: color-label images with IDs >> 3, 5, and 7. Collect by that label. Choose ‘Select all’ on the right > > Sorry, this should be 3, 5, 6, not 3, 5, 7. > >> pane. Now invoking `foo` prints >> >> ________________________________________ >> --- action images --- >> 1 3 /tmp/dt/foto/DSC_0259.NEF >> 2 5 /tmp/dt/foto/DSC_0261.NEF >> 3 6 /tmp/dt/foto/DSC_0262.NEF >> --- collection --- >> 1 1 /tmp/dt/foto/DSC_0257.NEF >> 2 2 /tmp/dt/foto/DSC_0258.NEF >> 3 3 /tmp/dt/foto/DSC_0259.NEF ------------------------------------------------------------------------------ _______________________________________________ Darktable-users mailing list Darktable-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/darktable-users