Skip to main content
arielmartini
Known Participant
April 4, 2018

P: SDK: photo:applyDevelopPreset() changes all settings, not just those of preset

  • April 4, 2018
  • 25 replies
  • 656 views

[Update: There are two symptoms of the same underlying bug introduced in LR 7.3:

- preset:getSetting() returns all develop settings, not just those set by the preset

- photo:applyDevelopPreset() changes all settings, not just those of the preset

See this post for a script demonstrating both:
https://feedback.photoshop.com/photoshop_family/topics/lr-classic-7-3-resets-settings-when-develop-p...

-- John Ellis]

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.

This topic has been closed for replies.

25 replies

Adobe Employee
April 16, 2018
Thanks  @ariel martini for the details.

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

Thanks,
Ganesh
Participating Frequently
April 11, 2018
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.
arielmartini
Known Participant
April 11, 2018
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.
Adobe Employee
April 11, 2018
@9206501 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
Sunil_Bhaskaran
Inspiring
April 4, 2018
Thanks for letting us know.
We are investigating.

Thanks,
Sunil