1 person found this helpful
Hi Victor, I haven't looked at your plug-in specifically, but first I'm wondering what is the intended behavior: What happens if you have photos from multiple folders selected (i.e. you're in a collection when you go to export)? Looking at the code snippet you've shown below, I suspect it would choose the folder of the most-selected photo and apply that to all of the exported photos.
Another way to approach this would be to let Lightroom render the photo to the folder it's aiming for and then physically move the photo afterwards via your processRenderedPhotos method. I haven't specifically tried this, but it might be a path of least resistance.
Yes, folder from most-selected photo is ok for me.
Another similar behavior, that I wanted to implement: create new subfolder with autogenerated name (And then run panorama stitching software on all files in the folder).
Implementing processRenderedPhotos to move files is good idea. So I will need temp folder to render photos, and target folder introduced by my plugin.
Drawback is that I will loose "Ask what to do with existing files" functionality.
I will try, thank you for advise.
Sure, no problem.
I thinkthis plugin of mine does most of what you want, using the technique Eric describes. It also explicitly allows you to configure whether to overwrite files or not.
I've been meaning to open its source. If you need to extend it or want an additional feature let me know and I can see if I can oblige.
Just found, that LrExportServiceProvider without built-in presets do exactly what I want. I initialize LR_ export properties in startDialog function, and nobody overrides these properties with default values after call.
The only drawback, that preset menu is more intuitive than ExportService provider.
But I'm still wondering, why it is forbidden to do something like "import 'LrApplication'" in .lrtemplate modules?
Presets aren't really part of the SDK (at least not in a technical sense), and so none of the SDK environment is available when we run the preset code to extract its data.