Lightroom SDK: Ability to detect grid mode vs. loupe vs. develop-module/auto-sync button.

  • 3
  • Idea
  • Updated 7 years ago
This is a backup 'Idea' in the likely event that the Lightroom edit targeting scheme does not get unified/simplified come Lr4.

If plugins could detect the above-mentioned modes, then at least they could be made to work just like Lightroom proper, target-wise.

Thus we'd have:

If adjustment-type == metadata then
if mode == lib/grid or (access is via context menu) then
apply to all selected photos
else
apply to most selected photo only
end
elseif adjustment-type == develop-settings then
if mode == dev/auto-sync or mode == lib/grid or (access is via context menu) then
apply to all selected photos
else
apply to most selected photo
end
else
-- there is no precedent - each plugin for itself again.
end

Note: this is the same thinking the user would have to go through *iff* the presently proposed simplification were implemented, whenever applying adjustments to assure desired targeting. Without this simplification, user has to go through even more complicated logic whenever applying changes, since plugins can not follow same targeting logic as Lightroom in that case, and each plugin may be differently programmed.

For reference, if the logic were unified in the simpler fashion, then plugin code would look like this instead:
- get target photos
- apply adjustments

Again, this would be the thinking required of a user as well whenever applying adjustments. to assure desired targeting - to reiterate:
- confirm photo selection
- make adjustments

(hopefully it will be made clearer in Lr4 when multiple photos will be affected)

I would much prefer the latter logic as user and in plugins, but if I shan't get my way, at least allow me to write plugins that work the same way as Lightroom proper.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 379 Reply Likes
  • revealing one of my least favorite Lightroom features, and hoping for at least a partial remedy.

Posted 7 years ago

  • 3

Be the first to post a reply!