Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[Q] Flag for in process by queued API (LrDevelopController) request?

Contributor ,
Dec 06, 2017 Dec 06, 2017

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

TOPICS
SDK
644
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 07, 2017 Dec 07, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 08, 2017 Dec 08, 2017
LATEST

@johnrellis,

Thank you very much for the tips.

Current issue is performance. So I may need to different way.

Thank you,

Naoki

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines