Skip to main content
arielmartini
Known Participant
Apr 4, 2018 2:18 AM UTC
Released

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

[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 is closed to new replies. Start a new post to keep the conversation going.

25 replies

Adobe Employee
Apr 16, 2018 10:14 AM UTC
Thanks  @ariel martini for the details.

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

Thanks,
Ganesh
Translate
Participating Frequently
Apr 11, 2018 2:26 PM UTC
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.
Translate
arielmartini
Known Participant
Apr 11, 2018 1:58 PM UTC
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.
Translate
Adobe Employee
Apr 11, 2018 8:11 AM UTC
@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
Translate
Sunil_Bhaskaran
Inspiring
Apr 4, 2018 4:04 AM UTC
Thanks for letting us know.
We are investigating.

Thanks,
Sunil
Translate