HISE Scripting Framework


  • administrators

    Awesome! Btw, do you still need that {GLOBAL_FOLDER} redirect function - I just remembered this by looking at your repository :)



  • I never actually got around to working with it, I've just being using absolute paths


  • administrators

    Well, this will lead to disastrous errors on a apocalyptic scale as soon as you compile plugins :)



  • Uh oh... tell me more!


  • administrators

    Scripts will be embedded using the relative path from the project folder / or global folder as identification. Think of it like a big JSON object:

    "scripts":
    {
        "{PROJECT_FOLDER}Script1.js": "onInit...",
        "{PROJECT_FOLDER}Script2.js": "include(\"{GLOBAL_FOLDER}somethingElse.js\"); onInit...",
        "{GLOBAL_FOLDER}somethingElse.js": ...
    }
    

    Now using absolute file paths may work, but it's pretty much undefined behaviour and can go wrong on certain OS version or under rare conditions (the other way is well tested on all platforms).

    What I can offer is the same mechanism that exists for sample folder relocation: a file in the "real" GlobalScript folder (the %APPDATA%/HISE/GlobalScriptFolder) called LinkWindows / LinkOSX that contains the path to the actual folder (in your case the repository root folder) and HISE will resolve this during development as well as when compiling.



  • Ah I understand now. Yes that would be a very good solution I think.



  • Took a quick look on GitHub. Very good work Dave, can I suggest that one of your videos covering how to deploy this in the development process would be really useful.



  • Once I've cleaned up the code a little and added more comments I'll do a little video.



  • I've added a bunch of Sublime Text 3 Snippets for HISE to the repo - I'm not sure I'll be adding any more as I'm pretty much doing everything directly in HISE now, if you have some snippets you'd like me to add to the repository just let me know :)


Log in to reply

Looks like your connection to HISE Scripting Framework was lost, please wait while we try to reconnect.