Skip to main content
Inspiring
July 2, 2022
Question

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

  • July 2, 2022
  • 1 reply
  • 272 views

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?

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Inspiring
July 19, 2022

The best solution I could find is:

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

    local err_code = LrTasks.execute( quotedCommand )

end