[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-pre...]
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