importFile

importFile ( string path ) : boolean

Import a script in another script.
Note that you can do this import anywhere in the script.
Returns true if the script is importer, else retruns false.
Local variables on the imported script will disappear from the current script. Pass the variables you want to import as globals and use this structure for your functions: myFunction = {param1, param2 -> .... }

Example


importFile( path("desktop")+"Grimport scripts/myScript.txt" )

//your personnal code 

Parameters

path

Path on your computer of the file containing the script to import