Plugin to export XMP
I'm new to Lightroom plugin development, but I am quite familiar with the Lightroom application, SQL, and Lua. I really dislike how Lightroom does not allow XMP sidecar files for JPGs, even though that situation hardly occurs, it bothers me. So, decided to try to make a plugin and although the documentation is pretty good, there aren't many forums to ask for help.
Here is what I think I need to know how to do:
- Is there a way of getting at the SQLite database directly?
The SQLite table Adobe_AdditionalMetadata has an xmp text column. It seems like it would be simple to export this to an .xmp file. I don't see any way of accessing it via the LR API though. Access each develop setting individually sucks because I'd have to construct the XML file, and even then, I wouldn't be able to access snapshots. - Is there a way I could trigger an export of the XMP file?
It seems as though the LR API works off context menu events, not Lightroom events.
Any suggestions are greatly appreciated. Thank you!
