Can I stack existing photos in the with the LR SDK?
I'm 100% new on this, so very sorry if it's a stupid question.
I want to write a simple plugin that that auto stack photos based on filename and folder. I basically want to auto stack the apple "live" photos, which is a jpeg and a mov, into 1 stack each. I've already built a proof of concept command line php script that does it and it works: it opens the LR database, queries all photos, group by folder+filename, and stacks the files with same folder+filename which are jpeg and mov.
I'm checking the SDK documentation but I can't find a way to stack photos other than adding them to the catalog. I don't want to remove them and re-add them if possible, I'm not sure if it could be problematic in other aspects.
Edit: actually, is it possible to query and modify the database directly through the SDK? That would clearly solve it since I already have it working, I would only have to translate it to Lua ![]()
BTW, I was thinking on this plugin as a menu item button to activate after each import. Is it possible to write plugins what execute on or after import?
Thanks in advance!
