Lightroom SDK: expose sort order to plugins.

  • 3
  • Idea
  • Updated 4 years ago
As it stands, there is no good way for a plugin to determine sort order. This makes it hard to take action which maintains sort order in exported files, especially when exporting is via publish service.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 384 Reply Likes

Posted 5 years ago

  • 3
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 384 Reply Likes
perhaps a parameter to getPhotos method, for example:

local sortOrderReq = 'user' -- custom sort order.
local descending = nil -- accept default: ascending.

local photosSorted = sourceFolderOrCollection:getPhotos( sortOrderReq, descending )

PS - it would be awesome if this worked for smart collections too!

(I realize that folders currently have a "recursive" parameter too which would need to be factored in.. - still: you get the idea, right?).

And of course if parameters omitted it would work just like it does today.

eh?