The LR 11 SDK API Reference for LrPhoto documents two new methods, photo:copySettings() and photo:pasteSettings(). But as documented, they don't do anything.
Update: The documentation is highly incomplete and needs to be clarified. See below.
To reproduce:
1. Copy this script into the file "copypaste.lua" and save it in the Scripts subfolder of the "Lightroom" preferences folder:
local catalog = import "LrApplication".activeCatalog ()
local photos = catalog:getTargetPhotos ()
if #photos ~= 2 then
import "LrDialogs".message ("Select exactly 2 photos")
return
end
photos [1]:copySettings ()
photos [2]:pasteSettings ()
catalog:withWriteAccessDo ("copy/paste", function ()
photos [1]:copySettings ()
photos [2]:pasteSettings ()
end)
2. Restart LR.
3. Choose a photo and set its Exposure to +5.
4. Select that photo and another, with the first photo most selected.
5. Do the menu command Scripts > copypaste.
Observe that the progress bar briefly shows "Paste Settings", but the Exposure = +5 setting isn't copied to the second photo.