Read Metadata of Photo During Export
I am working on a plugin that will help me optimize a publishing workflow. I think that the plugin will be most effective if it is applied during the process of exporting the image. The problem I am having after reviewing and playing with the two Export samples in the SDK I am not understanding how I can get a reference the current Photo while in postProcessRenderedPhotos. I see sourceRendition but is that a LRPhoto? The documentation is not clear on that an I am struggling to find any non-compiled samples in the wild.
I see that shouldRenderPhoto has a reference to the Photo, but I don't need to control what get's rendered. Does it matter? Should I just collect my metadata here and always pass shouldRender = true?
Essentially, as photos are exported I need to write a text sidecar file to go with each one that conforms to a DAM spec that is using data already stored with the image in LR metadata.
I know I can do this by looping through the "selected photos" in the grid, but that would cause my users to have to perform two actions rather than have it all together in the Export panel.