I made a plugin for publishing photos. In the plugin I loop through the photos and render them. And I loop through the virtual copies:
local copies = photo:getRawMetadata("virtualCopies")
for i, virtualCopy in pairs(copies) do
local copyName = virtualCopy:getFormattedMetadata("copyName")
if copyName == "myCopyName" then
-- export it as jpg
Now I want to export the virtual copy as jpg. Is this possible?
I don't know how to finish the code fragment -- perhaps someone else does.
But why not just ask the user to select any virtual copies she wants published?