2 Replies Latest reply on Oct 10, 2017 10:26 AM by Naoki-Hada

    [Q] Event handling tool, module and image

    Naoki-Hada Level 1

      Hi all,


      I'm still new to Lua and not sure if we can implement in SDK,

      but I'd like to handle following events.


      1) Current module changes

          There is LrApplicationView.getCurrentModuleName().


      2) Current tool changes in Develop mode

          There is LrDevelopController.getSelectedTool().


      3) Selected image changes

           There is LrCatalog.getTargetPhoto() and LrCatalog.getTargetPhotos()


      1)-3) seems at least readable, so I think we can implement as timered polling.

      But can it be event driven like addEventListner function in JavaScript?


      Thank you,