Lightroom Classic 9.3: Calling `applyDevelopPreset` with a plugin preset removes all photo Corrections

  • 2
  • Problem
  • Updated 2 weeks ago
  • (Edited)
Calling applyDevelopPreset on a preset created within the plugin causes all "Corrections" (Local adjustment Brushes, Radial Filters and Graduated Filters) to be removed from the image in LRC 9.3. All other image settings remain unchanged as expected.

Is there a way to prevent this from happening?

This is how the preset is administered on a photo in the plugin.

local preset = LrApplication.addDevelopPresetForPlugin(_PLUGIN, editText, edits)photo:applyDevelopPreset(preset, _PLUGIN)
This is the generated preset.

s = {    id = "35819D5A-5461-4BDA-802C-0A2AF7D3E4AC",    internalName = "Exposure  +0.3  1.8",    title = "Exposure  +0.3  1.8",    type = "Develop",    value = {        Exposure2012 = 1.8,    },    version = 0,}
Applying this preset changes the intended value of exposure, but also removes any Corrections (Local Adjustment brushes, Radial and Graduated Filters) on an image. All other settings remain unaffected.

Currently, as a workaround I'm having to do this to keep copying existing Corrections on an image onto the edits for the preset:

edits.PaintBasedCorrections = photoSettings.PaintBasedCorrectionsedits.CircularGradientBasedCorrections = photoSettings.CircularGradientBasedCorrectionsedits.GradientBasedCorrections = photoSettings.GradientBasedCorrectionslocal preset = LrApplication.addDevelopPresetForPlugin(_PLUGIN, editText, edits)photo:applyDevelopPreset(preset, _PLUGIN)
This behaviour was not present in LRC 9.2 and prior.

I originally raised this issue on the Adobe Community forum and it was replicated by other members. They've directed me to raise a bug report here.

System and App information:

Lightroom Classic version: 9.3 [ 202005281810-476e492c ]License: Creative CloudLanguage setting: en-AUOperating system: Mac OS 10Version: 10.14.6 [18G4032]Application architecture: x64Logical processor count: 12Processor speed: 2.6 GHzSqLite Version: 3.30.1Built-in memory: 16,384.0 MB
And could I be directed to where I can upload a sample plugin that highlights this error? And please let me know if there's any other information I can provide to help in solving this.
Photo of Chris A James

Chris A James

  • 2 Posts
  • 0 Reply Likes

Posted 2 weeks ago

  • 2
Photo of Sunil Bhaskaran

Sunil Bhaskaran, Official Rep

  • 486 Posts
  • 178 Reply Likes
Thanks for reporting this.
We are investigating. 
I have sent you an e-mail off list to get more information.

Photo of Chris A James

Chris A James

  • 2 Posts
  • 0 Reply Likes
Thanks for reaching out Sunil! I've replied to you.

I've built a demo plugin, which you and any team member can test out here:

Hope it helps :)