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

SDK Export using custom LrExportSession with UUD as part of the file name

Participant ,
Jul 02, 2022 Jul 02, 2022

I use the LrExportSession to create a custom export session and I want to have the UUID as part of the file name (photo:getRawMetadata( "uuid" ).

This helps in a second plug-in function to retrieve that perticular photo by it's UUID: catalog:findPhotoByUuid( uuid).

 

As far as I researched, the UUID is not one of the "Token patterns" that the SDK offers for assembling the file name. I researhed also the exportServiceProvider.updateExportSettings( exportSettings ), but I can't find this in combination with renaming.

 

Question

How can I export using LrExportSession and generate the file name containing the UUID of that photo?

TOPICS
SDK
258
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
Participant ,
Jul 19, 2022 Jul 19, 2022
LATEST

The best solution I could find is:

for i, rendition in exportSession:renditions(renditionParams) do loop

    local err_code = LrTasks.execute( quotedCommand )

end

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