SDK LrApplication.addDevelopPresetForPlugin adjusts the White balance settings although not in preset
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
