How to Use the Script Function (Beta)

Updated: 02/06/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 the Settings and other information icon -> Scripts (beta).

2. When the Script Manager starts, press Open Folder in the lower-right corner of the screen.

3. Write the following text in a file named hello.js, place this file in the scripts folder, and then restart.

console.log("hello")

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

Once the script has run, open the log window with the button in the lower-left corner of the screen to see the logs executed by the script.

Tips

If you create a folder named scripts in the folder where the model is located, the .js file in that folder will be registered when the model is imported.

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