Skip to main content
Participant
March 18, 2024
Question

SDK: how to update Title or Caption via SDK

  • March 18, 2024
  • 1 reply
  • 606 views

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.
This topic has been closed for replies.

1 reply

Inspiring
March 18, 2024

 

  
photo:setRawMetadata() ?

Climber59Author
Participant
March 18, 2024

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)




Inspiring
March 18, 2024

It's there in the pdf.