Skip to main content
Inspiring
January 30, 2026

P: SDK: LrApplication.addDevelopPresetForPlugin adjusts the White balance settings although not in preset

  • January 30, 2026
  • 5 replies
  • 87 views

When calling the LrApplication.addDevelopPresetForPlugin with the settings below, which don't include any white balance settings, the temp is adjusted to 2000 and Tint to 150.

local photoPresetTable = {
Exposure2012 = -0.43,
Whites2012 = 2
}

Full code example

local LrDialogs = import 'LrDialogs'
local LrTasks = import 'LrTasks'
local LrFunctionContext = import 'LrFunctionContext'
local LrApplication = import 'LrApplication'
local LrFileUtils = import 'LrFileUtils'

LrFunctionContext.postAsyncTaskWithContext("Test apply preset", function(context)
LrDialogs.attachErrorDialogToFunctionContext(context)

local catalog = LrApplication.activeCatalog()
local activePhoto = catalog:getTargetPhoto()

-- Create preset
local photoPresetTable = {
Exposure2012 = -0.43,
Whites2012 = 2
}
local newPhotoPreset = LrApplication.addDevelopPresetForPlugin(_PLUGIN, "Test preset", photoPresetTable)

-- Apply preset
catalog:withWriteAccessDo("Apply preset", function()
activePhoto:applyDevelopPreset(newPhotoPreset, _PLUGIN)
end)
end)

Any suggestions or is this a bug?

This is the image I get:
https://github.com/user-attachments/assets/27d3f41a-8297-4299-ac1b-0b00b1f12ff6

System info

Lightroom Classic version: 15.0.1 [ 202511041508-dddee541 ]
License: Creative Cloud
Language setting: en
Operating system: Windows 10 - Business Edition
Version: 10.0.19045
Application architecture: x64
System architecture: x64
Logical processor count: 20
Processor speed: 2,1GHz
SqLite Version: 3.36.0
Adobe GSDK Version: 1.4.0.171

 

 

5 replies

johnrellis
Legend
February 18, 2026

@Rikk Flohr_Photography, please consider moving to Bugs. See my previous post for a bug recipe.

Rikk Flohr_Photography
Community Manager
Community Manager
February 18, 2026

Done. Ticket created. 

Rikk Flohr: Adobe Photography Org
johnrellis
Legend
February 18, 2026

[View this post in your web browser. It contains formatting and images that don't appear in email.]

 

Precise steps to reproduce on LR 15.1.1 / Mac OS 26.2:

 

1. Unzip and install the attached plugin.

 

2. Select a raw and go to Develop.

 

3. Click Reset.

 

4. Do File > Plug-in Extras > Bug. Observe that Exposure has changed to -0.43 and Whites to +2, but no other settings have changed (correct).

 

5. Click Reset and make a small change to Temp.

 

6. Do File > Plug-in Extras > Bug. Observe that Temp has changed to 2,000 and Tint to -150 (incorrect).

johnrellis
Legend
February 2, 2026

Smart previews are implemented as lossy DNGs.  Maybe run the test on a lossy DNG in the catalog to see if it also happens with that?

Inspiring
February 13, 2026

I don't think that this is related to DNG.
Below a test on CR2 images from a Canon 750D camera.

I can reproduce the issue with the code above on an image from which one of the WB settings has been adjusted before running the plugin.

The image is a RAW image from a Canon 750D.

Lightroom Classic version: 15.1.1 [ 202601141538-a543b18a ]

Steps to reproduce

  1. Take an original image
  2. Apply the code above
    1. Result: Ok
  3. In History, go back to the original import step
  4. Change on of the WB settings
  5. Apply the code above
    1. Result: Not Ok

Screen recording

johnrellis
Legend
February 1, 2026

When I run that script, I don’t see the misbehavior in LR 15.1 (you’re on 15.0.1).  Perhaps it is dependent on the particular photo?  

 

I get a 404 when I click on the Github link.  Perhaps you could upload a problem photo to Wetransfer, Dropbox, Google Drive or similar free service and post the sharing link here. 

Inspiring
February 1, 2026

The strange thing is that on a different laptop on Windows 11 I could reproduce it once and after that the same image was Ok.

 

However on my Windows 10 computer (I know I have to upgrade) with Lightroom 15.01 and 15.1.1 I get the behavior each time, see Screen recording

Also I start looking into this after a customer of the Relative Adjustments plug-in created an issue with the same behavior, in that she created a preset with only exposure and white, but also th White balance settings where thrown off.

Inspiring
February 1, 2026

@LightroomStatistics More testing, it appears that the image I used was not found on the hard disk, but there as a smart preset.
The error occurs when the preset is applied to a smart preset.

However when the preset is applied on the original image, then everything is fine.

 

See white balance settings
Similar image, now white balance is unaffected

 

C.Cella
Inspiring
January 31, 2026

Likely a bug.

In the meantime rely on develop Presets perhaps .

Does it happen with all settings or just this particular combination ?

 

A possible workaround it to get the preset settings and apply them with photo:applyDevelopSettings()

 

 

 

.