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

Script preference management

Engaged ,
Dec 12, 2018 Dec 12, 2018

I am using a custom Bridge script to manage stacks. The script requires a value that changes depending on the user workflow. At the moment, the user must hardcode the value in the script.

What are the choices to simplify the task of opening the script and assigning the value to a variable?

Ideally, the script would be listed in the preference panel where the user inputs the value.

The script is available as a menu item in the menu bar.

TOPICS
Scripting
890
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
Guide ,
Dec 21, 2018 Dec 21, 2018

There is a good example in the SDK SnpAddPreferencesPanel.jsx that you could modify for your needs.

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 ,
Jan 30, 2019 Jan 30, 2019
LATEST

You can have a dialog box to input the value as well. You can also read and write XML to store settings.

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