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

Setting default values

Explorer ,
Feb 13, 2024 Feb 13, 2024

Copy link to clipboard

Copied

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

Views

77

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
LEGEND ,
Feb 13, 2024 Feb 13, 2024

Copy link to clipboard

Copied

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.

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