SDK: Programmatically load grid previews?
Hey folks,
When importing new photos, the thumbnails are generated for only the visible photos on the grid. Scrolling down and stopping, Lightroom then triggers a process that loads the previews for the newly visible photos if they've not already been calculated. Is there a way to programmatically do this same thing, but for all of the selected photos (in this case the collection of LrPhoto objects being passed to my plugin by the LrCatalog getTargetPhotos method)?
I've done some digging but to little avail. One solution that works (but is jenky in terms of user experience and speed), is to iterate through the photos by changing the selection to each (using the LrCatalog setSelectedPhotos method) - each selection triggering the aformentioned update. But there has to be a more elegant way to this.
Any wisdom from those more familiar with the Lightroom Classic SDK would be greatly appreciated. 🙏
