How to Use the Script Function (Beta)
Updated: 02/06/2024
Table Of Contents
Click here for information for developers.
Script Types
Application script | Model script |
---|---|
Scripts to run throughout the application | Scripts to run for each model |
Multiple registrations possible | Multiple 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 OFF | Initially 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