Lightroom Classic 7.3: Resets settings when develop preset is applied via script

  • 2
  • Problem
  • Updated 1 week ago
  • In Progress
  • (Edited)
I use a script that uses "photo:applyDevelopPreset". If i use it with a partial preset (that have only a few or only one setting) it resets all other settings to default.
Reverting to previous version until this is fixed.
Photo of ariel martini

ariel martini

  • 14 Posts
  • 5 Reply Likes

Posted 3 weeks ago

  • 2
Photo of Sunil Bhaskaran

Sunil Bhaskaran, Official Rep

  • 277 Posts
  • 87 Reply Likes
Thanks for letting us know.
We are investigating.

Thanks,
Sunil
Photo of Ganesh

Ganesh, Lightroom Engineer

  • 33 Posts
  • 17 Reply Likes
@ariel can you share more details about the issue? If possible share your script, preset(s) along with the steps to reproduce. We will reach your email to request more details.

Thanks,
Ganesh
Photo of ariel martini

ariel martini

  • 14 Posts
  • 5 Reply Likes
create a partial develop setting, that change only one setting, for instance white balance, and name it "New Preset".
create a script that calls photo:applyDevelopPreset, like this:

local LrApplication = import 'LrApplication'
local catalog = LrApplication.activeCatalog()
catalog:withWriteAccessDo("ApplyNR", function()
local myPreset
for _, folder in ipairs(LrApplication:developPresetFolders()) do
if folder:getName() == "User Presets" then
for _, preset in ipairs(folder:getDevelopPresets()) do
        if preset:getName() == "New Preset" then 
          myPreset = preset
end end end end
for _,photo in pairs(catalog:getTargetPhotos()) do
    photo:applyDevelopPreset(myPreset)
end
end)
This should change only white balance, but resets all other develop settings to default.
Photo of Ievgen Morskyi

Ievgen Morskyi

  • 3 Posts
  • 0 Reply Likes
Please fix this in the next update, it breaks MIDI2LR functionality and a lot of people are using it and depend on it working properly.
Photo of Ganesh

Ganesh, Lightroom Engineer

  • 33 Posts
  • 17 Reply Likes
Thanks  @ariel martini for the details.

I am able to reproduce the issue you are reporting. We will make a fix.

Thanks,
Ganesh