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

P: SDK: Library Metadata panel doesn't display GPS fields set by photo:setRawMetadata()

LEGEND ,
Jun 12, 2025 Jun 12, 2025

When the SDK method photo:setRawMetadata("gps", coordinates) changes the GPS coordinates of a photo, the Library Metadata panel doesn't show the new coordinates. The same problem occurs with the fields "gpsAltitude" and "gpsImgDirection".

 

To reproduce on LR 14.3.1 / Mac OS 15.5:

 

1. Save the attached file "setrawmetadata-gps-bug.txt", rename it to have the .lua extension, and move it into the LR Scripts folder. Restart LR.

 

2. In Library, select a photo.

 

3. In the Metadata > Location tagset, set GPS to these coordinates:

37°19'50.6"N 121°53'40.1"W

Observe that the address suggestion matches the coordinates:

johnrellis_0-1749776503027.png

 

5. Do Scripts > setrawmetadata-gps-bug, which sets GPS to these coordinates:

40°43'42.3696" N 115°28'58.9836" W

Observe that the address suggestion has changed to match those new coordinates, but the GPS field still shows the coordinates from step 3 (incorrect):

johnrellis_1-1749776695995.png

 

6. Restart LR, and observe that the changed GPS coordinates are now displayed correctly:

johnrellis_2-1749776770769.png

 

The same problem occurs with the fields "gpsAltitude" and "gpsImgDirection". Modifying the test script is left as an exercise for the reader.

 

Bug Investigating
TOPICS
macOS , SDK , Windows
141
Translate
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

correct answers 1 Pinned Reply

Adobe Employee , Jun 13, 2025 Jun 13, 2025

Thanks for the report @johnrellis. I"ve logged this with the team.

Status Investigating
Translate
1 Comment
Adobe Employee ,
Jun 13, 2025 Jun 13, 2025
LATEST

Thanks for the report @johnrellis. I"ve logged this with the team.

Rikk Flohr: Adobe Photography Org
Status Investigating
Translate
Report