How to Use the Script Function

Updated: 06/14/2024

Table Of Contents

Click here for information for developers.

Script Types

Application scriptModel script
Scripts to run throughout the applicationScripts to run for each model
Multiple registrations possibleMultiple registrations possible
Put the .js file in the scripts folder where the .ini file and models are stored.Put the .js file in the scripts folder at the model location (usually the model3.json location).
Initially OFFInitially OFF

How to use

1. click on Settings/Other>Scripts.

2. When the Script Manager starts, press the Create button under Application.

3. Select an empty template and set a file name.

4. The test.js file is automatically created. Open the js file in a text editor and write the following.

console.log("hello")

4. Turn on the Enable Scripts toggle and individual file toggles (these toggles are initially disabled).

5. Once the script has run, open the log window in the lower left corner to see the logs executed by the script.

Tips

The above sample script is automatically created when you select hello.js in the template selection.

Tips

When you open the folder at the model icon, a script folder will be created and opened in the model folder. The .js in it will be registered when the model is loaded.

Was this article helpful?
YesNo
Please let us know what you think about this article.