local status, other = rendition:waitForRender()
if status then
local photoPath = other
-- hard to imagine, but status may be OK despite no rendered file, if source photo is corrupt - check added 19/Oct/2012 9:12.
if fso:existsAsFile( photoPath ) then -- ###1 all export/publish plugins could benefit from being re-released with this check added.
self:processRenderedPhoto( rendition, photoPath )
self:processRenderingFailure( rendition, str:fmtx( "Lightroom was unable to render photo: ^1", rendition.photo:getRawMetadata( 'path' ) ) )
local message = other
self:processRenderingFailure( rendition, message )
Be the first to post a reply!