Skip to main content
Inspiring
October 24, 2020

P: Applying preset in plug-in - all panels turned off

  • October 24, 2020
  • 5 replies
  • 530 views

[Here's a test plugin to run in LR 9.4 and 10.0, showing the bug in 10.0. -JRE

https://feedback.photoshop.com/conversations/lightroom-classic/bug-lightroom-classic-10-applying-preset-in-plugin-all-panels-turned-off/5f9439bcbd2550489fc11865?commentId=5f960b4649d3ca123123eeff]

 

When retrieving an existing preset with for example Exposure 0.5, along with this setting all the panels are turned off.

 

Example preset:

   xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/"
   crs:PresetType="Normal"
   crs:Cluster=""
   crs:UUID="41AE3A89A1C9A8429C7CE3F3B1A21FCD"
   crs:SupportsAmount="False"
   crs:SupportsColor="True"
   crs:SupportsMonochrome="True"
   crs:SupportsHighDynamicRange="True"
   crs:SupportsNormalDynamicRange="True"
   crs:SupportsSceneReferred="True"
   crs:SupportsOutputReferred="True"
   crs:CameraModelRestriction=""
   crs:Copyright=""
   crs:ContactInfo=""
   crs:Version="13.0"
   crs:ProcessVersion="11.0"
   crs:Exposure2012="+0.50"
   crs:HasSettings="True">
   
Listing the preset with "preset:getSetting()" will result in:

 

{EnableCalibration = false,EnableCircularGradientBasedCorrections = false,EnableColorAdjustments = false,EnableDetail = false,EnableEffects = false,EnableGradientBasedCorrections = false,EnableGrayscaleMix = false,EnableLensCorrections = false,EnablePaintBasedCorrections = false,EnableRedEye = false,EnableRetouch = false,EnableSplitToning = false,EnableToneCurve = false,EnableTransform = false,Exposure2012 = 0.5,ProcessVersion = "11.0",Version = "13.0"}

 

When applying this preset with:

    local preset = LrApplication.addDevelopPresetForPlugin(_PLUGIN, "Apply preset " .. presetName, preset:getSetting())photo:applyDevelopPreset(preset, _PLUGIN)

The real problem is that when applying this preset the user sees in the Develop module all his develop adjustments having  disappeared. Actually the settings are there, but all the panels have been turned off.

I think many user will panic from this behavior!

 

To reproduce I've created a Lightroom sample plug-in here: Sample plug-in

 

Btw, I based the sample plug-in on that of  Chris James: Chris James

This topic has been closed for replies.

5 replies

Rikk Flohr_Photography
Community Manager
October 26, 2020

I've logged a bug here, John. 

Rikk Flohr: Adobe Photography Org
johnrellis
Legend
October 25, 2020

This bug also affects my most popular plugin, Export LUT, and it probably affects other popular plugins, like The Fader and MIDI2LR.

johnrellis
Legend
October 25, 2020

Here's a simple test plugin to be run in LR 9.4 and LR 10, showing the bug:

https://www.dropbox.com/s/3gy5pb3kpa591se/lr10presetbug.lrdevplugin.zip?dl=0   

After installing the plugin, do File > Plug-In Extras > Run Test. Here's the output on 9.4 and 10.0:

 

Inspiring
October 25, 2020

I tested with version 9.4 and this version had not this issue.

An easy way to test the difference is using the Preset viewer plug-in.

In version 9.4 and before all the enablexxxx settings where not present when one had a preset with only exposure=0.5

There was a similar bug in version 7.3. At that time not only exposure=0.5 but all settings listed with their default settings, see Lightroom SDK: issue with preset:getSetting(). That one was fixed later.

One wonders if Adobe is applying unit testing on the SDK. This error would have come up immediately.

johnrellis
Legend
October 25, 2020

Have you observed that this is a recent change in LR 10, or was it present in LR 9?

Since the introduction of the "new" .xmp preset format in LR 7.3, the SDK's handling of presets has been a mess.  Adobe changed LR and ACR to use the same presets, which was a good thing. But ACR didn't have a concept of "enable" and "disable" of groups of sliders in its UI, and whoever implemented the unification didn't carefully think through the implications. This resulted in a number of bugs, both in the UI and in the SDK.  This one is still outstanding and is related to the behavior you're observing here:

https://feedback.photoshop.com/conversations/lightroom-classic/lightroom-classic-presets-no-longer-record-and-apply-the-turn-onoff-settings-of-the-develop-panels/5f5f45f24b561a3d4269ddea