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

Explorer ,
Jul 02, 2022 Jul 02, 2022

Copy link to clipboard

Copied

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

Views

43

Likes

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
Explorer ,
Jul 19, 2022 Jul 19, 2022

Copy link to clipboard

Copied

LATEST

The best solution I could find is:

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

    local err_code = LrTasks.execute( quotedCommand )

end

Likes

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