Lightroom SDK: A way to deselect all photos.

  • 3
  • Idea
  • Updated 4 years ago
Proposed enhancement to catalog:setSelectedPhotos - when photo is nil (first parameter), instead of throwing an error, deselect all photos.

Example use case: I have plugin(s) that select photo(s) in order to do things with them, then when finished, hope to put the user's selection back the way it was. This works for all cases except if nothing was previously selected. - this would solve that problem.

Summary: There is presently no way to deselect all photo(s) - any way that functionality were made available would be fine.

Thx,
R
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 384 Reply Likes

Posted 7 years ago

  • 3
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 384 Reply Likes
Perhaps a more intuitive implementation: if array of photos to select is empty, then select none (de-select all).