Skip to main content
Inspiring
January 30, 2026
Question

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

  • January 30, 2026
  • 3 replies
  • 7 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

 

 

3 replies

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?

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()

 

 

 

.