Parametric design in MoI?

 From:  FDP
7713.817 In reply to 7713.816 
Hi Max,
Thanks for building this awesome tool!

I'm having a problem with node editor v 1.0 (rc3). It appears that Macros aren't working for me at all (either in MoI 3 or 4 beta). The following error pops up if I select Macro (the error looks identical in 3 and 4 beta, although I can only cut and paste the error in 4 beta):

Script error

TypeError: undefined is not an object (evaluating 'document.URL.split(/moi:\/\/appdata\/(.*\/).*/g)[1].replace')

moi://ui/nodeeditorv10rc3/core/main.js line 4404

4400: var entries = {};
4401: for(i=0; i<values.length; i++) { if ( values[i] ) entries[i] = { value: ">"+values[i], content: lang.getTranslation(values[i]), is_menu: false }; }
4402:
4403: var dir = (moi.filesystem.getAppDataDir)?moi.filesystem.getAppDataDir:moi.filesystem.getProcessDir;
4404: >> var path = dir()+document.URL.split(/moi:\/\/appdata\/(.*\/).*/g)[1].replace(/\//g,"\\")+"macros\\";
4405:
4406: if ( moi.filesystem.dirExists(path) )
4407: {
4408: var files = getFiles(path);



Any ideas on what I am doing wrong?

-FDP