Skip to main content
Inspiring
December 12, 2018
Question

Script preference management

  • December 12, 2018
  • 2 replies
  • 906 views

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.

This topic has been closed for replies.

2 replies

Legend
January 30, 2019

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

SuperMerlin
Inspiring
December 21, 2018

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