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

Setting default values

Explorer ,
Feb 13, 2024 Feb 13, 2024

Thanks to this group, my plugin works good, but I would like to make it more user friendly.

I would like to let the user choose a default folder, so in the main window were there is a browse button it go directly to that directory.

As I understand it, the function to read this value must be defined in the pluginInit file ?

Also it's not quite clear for me how to write and read them, is LrPrefs.prefsForPlugin the correct way and can you point out in the SDK where to find some examples.

Thank you

TOPICS
SDK
100
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 ,
Feb 13, 2024 Feb 13, 2024
LATEST

"is LrPrefs.prefsForPlugin the correct way"

 

Yes.

 

"in the SDK where to find some examples"

 

The only .lua file in the SDK that uses LrPrefs is FlickrAPI.lua.

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