Skip to main content
Inspiring
November 5, 2019

P: SDK ignores values set in updateExportSettings function (Timelapse plugin)

  • November 5, 2019
  • 17 replies
  • 804 views

A bug seems to be introduced with version 9.0 of Lightroom that when a plugin designer sets exports settings using the "updateExportSettings" of the Lightroom SDK all these settings are ignored and default settings are sent for the export job.

When the following code is used, the files are NOT renamed on export. The exported file have the same name as the original files.


updateExportSettings = function( settings )

    settings.LR_collisionHandling = "rename"

    -- Rename settings
    settings.LR_renamingTokensOn = true
    settings.LR_tokenCustomString = ""
    settings.LR_tokens = "{

{naming_sequenceNumber_5Digits}}"

end


I do not know if this is the best place to put this, Adobe seems to have deleted the Lightroom SDK forum.

This topic has been closed for replies.

17 replies

Inspiring
April 5, 2020
This is in a plugin I'm working on. I'm very inexperienced. This is the first plugin I'm writing. So a mistake on my part is definitely possible.

My plugin looks something like this. I hope I didn't leave out anything essential:

local Plugin = {
    hideSections = { "exportLocation", "fileNaming", "metadata", "video" },
    allowFileFormats = { "TIFF" },
    allowColorSpaces = nil,
    exportPresetFields = {}
}
function Plugin.startDialog( propertyTable )
    propertyTable.LR_format = "TIFF"
    propertyTable.LR_tiff_compressionMethod = "compressionMethod_None"
end
function Plugin.processRenderedPhotos( functionContext, exportContext )
    local exportSession = exportContext.exportSession
    local nPhotos = exportSession:countRenditions()

    local failures = {}
    for _, rendition in exportContext:renditions{ stopIfCanceled = true } do
        local success, pathOrMessage = rendition:waitForRender()
    end
end

pathOrMessage will be a path to a file in a temporary location where the name ends in .jpg and testers indicate to me that the file is in fact a JPEG file.

I have not observed this on my own Windows workstation and have limited access to a OSX machine under the current conditions.

Also, thanks for the quick response 🙂

johnrellis
Legend
April 5, 2020
Oliver, are you seeing this problem with a plugin you wrote or using the LR user interface?
Inspiring
April 5, 2020
Is it possible that there has been a regression on this? Because I'm seeing the exact behavior where I'm requesting a TIFF to be exported, but I'm receiving a .jpg file after the export. Although I'm only seeing that behavior on OSX, not on Windows.
johnrellis
Legend
December 11, 2019
"Adobe seems to have deleted the Lightroom SDK forum."

Unfortunately, all of the scripting and SDK forums were merged into their parent forums as part of the ugly migration from the Jive platform to Khoros.   Most of the old LR SDK forum content is still there, though it's much harder to search, and it's much harder for a plugin developer to monitor just SDK content.

Regardless, this forum (the official feedback forum) is the place to post bug reports.
Rikk Flohr_Photography
Community Manager
December 10, 2019
This should be resolved by the 9.1 update released earlier today. Please give it a try and let us know if you still see the issue after updating.  Thank you for your patience!
Rikk Flohr: Adobe Photography Org
Gunther Wegner
Known Participant
November 6, 2019
I can confirm this problem, it's a big issue for me and the users of my software who rely on my Custom Export Plugin for Lightroom.

Here is a sample ServiceProvider script:
local LrDialogs = import 'LrDialogs'
return {
showSections =
{ 'fileNaming', 'imageSettings', 'exportLocation' },

updateExportSettings = function( exportSettings )
LrDialogs.message("Called") -- this will be called,
-- but still the exportSettings
-- won't be changed
-- export will happen in JPG.
exportSettings.LR_format = "TIFF"
end,

processRenderedPhotos = function( functionContext, exportContext )
local exportSession = exportContext.exportSession
local renditions = exportSession:renditions{ stopIfCanceled = true }
for i, rendition in renditions do
success, pathOrMessage = rendition:waitForRender()
end
end
}

If the Plugin is being called by a preset, which sets format = "TIFF", it will show the right format (tiff) in the dialog, but then still export jpgs.

I'd really appreciate if a fix could be provided asap! Thank you!

bhargaveede
Adobe Employee
Adobe Employee
November 6, 2019
Hi Allen,

Thanks for reporting the issue.
We'll investigate and get back to you.

Meanwhile, Can you provide a sample script to replicate the issue?

Thanks,
Bhargav