how to make a "new photo to publish" be considered "published" without actually publishing it?
I have some photos that are really just stubs that represent the other "real" photos to publish.
I don't want to have to do a mock export/rendering of them just to make them appear published.
Any ideas?
Rob
In one of my plugins I have a requirement to download and add photos from the remote server and populate the newly created published collection in Lightroom. In this routine, I use the following code to add the images to a published collection using the method provided by Don above.
[code]
catalog:withWriteAccessDo('createcollection', function()
newcollection = v:createPublishedCollection(h.title)
newcollection:setRemoteId(h.id)
end)
catalog:withWriteAccessDo( 'NPGSetUpdates', function()
newphoto = catalog:addPhoto(newpath)
newcollection:addPhotoByRemoteId(newphoto,p.id,p.url,true)
end)
[/code]
The biggest thing here is that adding a photo like this requires the code to reside within the withWriteAccessDo block.
North America
Europe, Middle East and Africa
Asia Pacific