Notch Notch Manual 0.9.23
 Light | Dark
Add JS script

Add JS script

Adding the script #

JS scripts are resources and so need to be imported into the scene after which they can be applied to a JavaScript node.

  • In the Resources panel, right click then: Import Resource -> Script -> JavaScript and browse to your .js file.

  • Create a JavaScript Node and then select the JS Resource in it’s properties.

Keeping the script up-to-date #

The JS script becomes embedded in your project when you import it. To refresh from the source .js file, right click the resource and click Reload Resource.

Notch can watch the .js file for changes and reload when it sees updates. To enable this right click the resource and click Reflect Resource Changes.

resourcemenu

Related Videos