Skip to main content
Inspiring
February 13, 2024
Question

Setting default values

  • February 13, 2024
  • 1 reply
  • 141 views

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

This topic has been closed for replies.

1 reply

johnrellis
Legend
February 14, 2024

"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.