Lightroom SDK: No way to clear the current selection

  • 3
  • Problem
  • Updated 3 years ago
  • (Edited)
There appears to be no way in the SDK for a plugin to clear the current selection. The call:

catalog:setSelectedPhotos (nil, {})

results in "assertion failed".
Photo of John R. Ellis

John R. Ellis, Champion

  • 3725 Posts
  • 975 Reply Likes

Posted 6 years ago

  • 3
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
I hope Adobe fills more holes in the Lightroom SDK come Lr5 (or Lr4.X).
Photo of John R. Ellis

John R. Ellis, Champion

  • 3725 Posts
  • 975 Reply Likes
Still broken in LR 5 Beta.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
Grrrrr...

The SDK in Lr1.3 was amazing, was greatly improved in Lr2, was substantially improved in Lr3, but in Lr4: very little improvement. Judging from the string dump in Lr5, I'm guessing we can expect another lean release, SDK-wise.

Although I wish Adobe would continue the precedent that was started, at this point, I'd settle for plugging of glaring holes and fixed bugs.

Unfortunately, Adobe seems not to review the SDK bug-list when creating the next version, since so many simple-to-reproduce and easy-to-fix (well-documented) bugs are not being addressed.

This bug/hole for example would probably be quick and easy to fix, was documented in time, and yet persists... - I just can't figure it. Are they trying to actively discourage plugin writing? Is management in need of a pill? Programmer's hands are tied??

Rob
Photo of John Ellis

John Ellis

  • 117 Posts
  • 12 Reply Likes
Though the LR 6 SDK documentation hasn't been released (and based on past major releases, that could take many more weeks or months), it appears that LrSelection.selectNone() clears the current selection.