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

Lua and globals query Lightroom Classic

Community Beginner ,
Jan 02, 2020 Jan 02, 2020

Copy link to clipboard

Copied

Hello,

 

I am wondering how Lightroom handles globals. Does every plugin has its own LUA ebvironment, so the globals of a plugin are only visible for the plugin decalring them? Or are they shared across the  running Lightroom instance?

 

Thanks for your answer in advance

Thorsten

TOPICS
SDK

Views

349

Translate

Translate

Report

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

correct answers 1 Correct answer

LEGEND , Jan 02, 2020 Jan 02, 2020

Each plugin gets its own global environment, which gets created the first time the plugin runs and persists until LR exits or you reload the plugin.  The persistence is handy for things like caches.

 

[Use the reply button under the first post to ensure replies sort properly.]

Votes

Translate

Translate
LEGEND ,
Jan 02, 2020 Jan 02, 2020

Copy link to clipboard

Copied

Each plugin gets its own global environment, which gets created the first time the plugin runs and persists until LR exits or you reload the plugin.  The persistence is handy for things like caches.

 

[Use the reply button under the first post to ensure replies sort properly.]

Votes

Translate

Translate

Report

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
Jan 02, 2020 Jan 02, 2020

Copy link to clipboard

Copied

LATEST

Hi Thorsten,

 

Thanks for posting on Lightroom community.

 

I am going to check with our Engineers for an answer to your question. 

 

Edit: John has pretty much answered your query but I'll still update if there is any addition from our Engineers.

 

Regards,

Akash

Votes

Translate

Translate

Report

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