• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Tab in the metadata panel: SelectedPhotos or TargetPhoto.

Participant ,
Apr 27, 2024 Apr 27, 2024

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.

TOPICS
SDK , Windows

Views

70

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 27, 2024 Apr 27, 2024

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 27, 2024 Apr 27, 2024

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 27, 2024 Apr 27, 2024

Copy link to clipboard

Copied

LATEST

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:

https://community.adobe.com/t5/lightroom-classic-ideas/p-consistent-behavior-when-multiple-photos-se...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines