Skip to main content
govindm37737273
Participant
November 9, 2017
Question

Settings/Preferences for HTML panel

  • November 9, 2017
  • 1 reply
  • 440 views

Hi,

For my HTML panel extension, I need the user to select some panel specific settings/preferences. Some of these are PPRO project specific and some are preferences for the panel. What is the right place to store these? Is XMP used for this? Are there any samples?

The 'Samples' project has samples for creating simple value properties in XMP. I want to have nested (struct) values. I could not find any example.

Thanks

Anand

This topic has been closed for replies.

1 reply

Ten A
Community Expert
Community Expert
November 9, 2017

I think it is better to write the value to the project itself. Here is a link you can reference manipurate XMP data.

https://github.com/ten-A/Extend_Script_experimentals/blob/master/XMPtool.jsx

Panels preferences, You can use localStorage in your extension. Reference below R/O sample.

localStorage.setItem('itemName', 'itemValue'); //set string

var str = localStorage.getItem('itemName'); //get string