Using an Existing Script

Table of Contents

While creating or editing virtual parameters, you have the choice to write your own script or choose an existing script. This guide explains how to use an existing script properly.

To select an existing script, click on “Use existing script” from the main screen. This will bring up the scripts selection screen. 

existing-scripts.png

There are two types of script, 

  1. Virtual Parameter Script – scripts written for virtual parameters.
  2. User Defined Script Рscripts written for use with masks.

Both types of scripts will work with virtual parameters. Once you have selected the script of your choice, hit the “Select” button.

Shared Script #

Once you have selected the script, you might get a warning that the script is shared with other virtual parameters. This little section explains how to deal with that.

A shared script is like any other script except that it is being used by other virtual parameters. The list of virtual parameters that share the script is shown together inside the warning.

existing-script-warning.png

This has a few consequences. The changes you make to the script will affect the output of all the linked virtual parameters that share the script. The changes are applied only during saving, so you’re still safe editing them!

You can create a copy of the script by selecting “Copy Script” (Click “Show More” if you don’t see the option). This creates a copy of the script and your changes won’t affect all linked virtual parameters. You will notice that the warning goes away.

If you decide to continue editing without copying the script, you will get to decide to either overwrite or create a copy when you click on “Create VP” when you’re done with making changes to the script.

existing-script-save-warning.png

In case of doubt and you’re not sure whether to create a copy or overwrite an existing script, we suggest creating a copy to avoid unexpected behavior to existing virtual parameters.

Powered by BetterDocs