Copy link to clipboard
Copied
Hi all,
Is there any way to check if Lightroom is in process of API (LrDevelopController) request in API?
I'm working on Color Temperature changes from hardware input for example 10K each changes by hardware input.
LrDevelopContoller.setValue(param, value) returns quickly and seems get queued for 20 second to process.
So I thought if code can tell Lightroom is get queued or waiting for UI update done,
the code can accumulate value and skip queuing.
UI response from hardware is more important for this case.
Thank you,
Naoki
Copy link to clipboard
Copied
Is there any way to check if Lightroom is in process of API (LrDevelopController) request in API?
The only way I've discovered is to repeatedly call photo:getDevelopSettings() and compare the new settings with the old:
local oldSettings = photo:getDevelopSettings ()
LrDevelopController.setValue (...)
while not settingsSame (oldSettings, photo:getDevelopSettings ()) do
LrTasks.sleep (0.1)
end
Copy link to clipboard
Copied
@johnrellis,
Thank you very much for the tips.
Current issue is performance. So I may need to different way.
Thank you,
Naoki