Other great resources: Official JS API docs, Scripting Forum
Â
scriptPath
This is the path, without the filename or extension, of the main script that was loaded in to your scripting environment.
Examples:
This global is useful for dynamically loading additional scripts in the same folder, or a sub-folder, of your main script.
// load foo.js from the config folder that's located alongside your main script include(scriptPath+"config/foo.js");
Requires:
Jump to: