The VivoScript panel gives the user access to the saved Quick Scripts, and allows the user to change where VivoQuant looks for included scripts and the method used to include VQS scripts in other scripts.

VivoScript settings panel
VivoScript settings panel

Don’t #include scripts from VivoQuant’s own script folders

When this is checked, #include doesn’t look in the script folders installed with VivoQuant: the VivoScript folder in the VivoQuant program folder, and on macOS VivoQuant.app/Contents/Resources/VivoScript. It still looks in the folder of the script being run, the VQSCRIPT_PATH folder, the current folder, and the VivoScript folder in your Documents folder (your home folder on macOS and Linux).

Use this when you keep your own copies of scripts that are also installed with VivoQuant, such as the iPACS library. Your copies are then always the ones used, without a warning that a name matches files in more than one place. Scripts that include a library installed with VivoQuant, such as SettingsTab.vqs, then need their own copy of it, for example next to the script.

This setting is unchecked by default, and is not available when Run VQS with import support is checked, because #include isn’t used then. See Including Other Scripts for the full search order.

Run VQS with import support

The #include "script.vqs" syntax is the original VivoQuant method used to include functions from other VQS scripts and works in a way similar to C/C++ preprocessor inclusion. VivoQuant looks for the included script in the folder of the script being run, then in several other folders; see Including Other Scripts for the full search order.

It is also possible to use the Javascript es6 and newer import keyword to import a script instead. The script to be imported should be located relative to the VQS script that will be run. This allows for better script management practices but currently has limited support for syntax checking.