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

SDK: how to update Title or Caption via SDK

Community Beginner ,
Mar 17, 2024 Mar 17, 2024

Copy link to clipboard

Copied

I am trying to create a plug-in that will allow me to set the Title and Caption for images automatically.  I can see how to read the value with  

photo:getFormattedMetadata("caption").  I have not found a sample that shows how to set the field.
TOPICS
SDK

Views

115

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
Engaged ,
Mar 18, 2024 Mar 18, 2024

Copy link to clipboard

Copied

 

  
photo:setRawMetadata() ?

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
Community Beginner ,
Mar 18, 2024 Mar 18, 2024

Copy link to clipboard

Copied

Thanks for the detail I was able to use this and some additional code to update a metadata field. It is unfortunate that this is not in the SDK pdf.

    catalog:withWriteAccessDo('Update Caption', function(context)
        photo:setRawMetadata("caption", "NewValue")    
    end)




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
Engaged ,
Mar 18, 2024 Mar 18, 2024

Copy link to clipboard

Copied

It's there in the pdf.

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
Community Beginner ,
Mar 18, 2024 Mar 18, 2024

Copy link to clipboard

Copied

I see it is part of the downloaded files in the API Reference HTML pages, not in the Lightroom Classic Programmers Guide.  That is nice to see and it will help with my development.  

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
Engaged ,
Mar 19, 2024 Mar 19, 2024

Copy link to clipboard

Copied

LATEST

Sorry, yes. I'm getting pdf and html confused.

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