Why doesn't the Temperature and Tint be reflected?
It's a very simple piece of code.
For some reason, it is not reflected when the Temperature or Tnt value is 0.
Please let me know if there are any mistakes.
local LrApplication = import 'LrApplication'
local LrDialogs = import 'LrDialogs'
local LrTasks = import 'LrTasks'
local function applyFixedTemperature()
local catalog = LrApplication.activeCatalog()
LrTasks.startAsyncTask(function()
local photos = catalog:getTargetPhotos()
local numSelectedPhotos = #photos
catalog:withWriteAccessDo("Apply Temperature", function()
for i, photo in ipairs(photos) do
local settings = photo:getDevelopSettings()
settings.IncrementalTemperature = 5
photo:applyDevelopSettings(settings)
end
end)
LrDialogs.message("Message", tostring(numSelectedPhotos) .. " photos temperature adjustment completed", "info")
end)
end
applyFixedTemperature()

