To see the list of scripts currently running, go to Edit > Running Scripts or press Ctrl + J to open the Running Scripts window on your tablet or HUD.
At the top of this panel, there are two buttons, Reload All and Stop All. Just below them is the list of currently running scripts. When you open Interface, it runs the default scripts designed to run at startup.
The Running Scripts window can be used to load and run scripts from a URL or from a disk drive. High Fidelity also provides a number of example scripts for you to try out. These are listed in the lower half of the Running Scripts window.
To run a script:
You should now see the script at the top of the Running Scripts window, as well as the results of running the script.
Each domain owner has the ability to restrict create and edit permissions. If the script you want to run adds or edits entities and you don't have the permission to do so, you won't see any objects created or changed. However, you will still see the script listed in the Running Scripts window. For example, if you installed Sandbox and you are in your Home domain, if you run the High Fidelity example script
createCow.js found in the tutorials folder, an animated cow will appear in front of you. But, if you run
createCow.js in a domain where you don't have permissions, the animated cow will not appear.
You can close or restart any or all of the running scripts. To reload or stop a script, go to Edit > Running Scripts or press Ctrl + J to open the Running Scripts window, and then do one of the following:
To get started writing your own scripts, read this tutorial.