Copy link to clipboard
Copied
Hello!
Tell me, please, how do I understand in the code that a certain Tab is selected in the interface in the metadata panel: SelectedPhotos or TargetPhoto? It is highlighted in a brighter white color on the panel. But in the code, that "catalog.targetPhoto", that "catalog.targetPhotos" return the same values regardless of which tab I have selected in the panel.
How do I get the value of the selected tab into a variable?
I am writing through a translator, please excuse me if it is not very clear.
Copy link to clipboard
Copied
The SDK doesn't provide any way to tell whether Target Photo or Selected Photos is highlighted in the Metadata panel.
The methods catalog:targetPhoto() and catalog:targetPhotos() do something completely different -- they return which photos are currently selected in Library Grid view and in the filmstrip.
Copy link to clipboard
Copied
Got it! Thank you very much for the reply!
I understand that they are doing something else, I just wanted my plugin to work based on which tab is selected - with one photo, even if several photos are selected, but the TargetPhoto tab.
Copy link to clipboard
Copied
Note that the Metadata panel buttons Target Photo / Selected Photos only affect entering text into fields in the Metadata panel. They don't affect adding keywords or other commands such as Metadata > Edit Capture Time or Library > Rename Photo.
In general, how LR handles multiple selected photos is a complete, confusing mess with rules so complicated that not even experts can remember them: