when trying to use this, i get an error:
i’m a bit confused as there’s no line 87 in the file.
i have the above file saved in a .js file called includefiles.js in ‘Max5/Cycling ’74/jsextensions/’
basically i just have my .js file with a single line at the top:
can anyone offer any assistance?
edit: sorry, it still works. so i guess it doesn’t matter?
cheers. so i guess the error wasn’t really with the include() function, but rather with the file it was including, namely the dynexpr.js (which itself has only 54 lines of code). there was a variable s declared like:
expression = s.toString().replace(/"/g,""); // strip quotes if present
which caused it to complain because i didn’t include the default argument in my new js object (the script of which imported the old dynexpr.js). so thats all cool, cheers again for your help!
trying to run this i get an error
refering to scope.eval(mem);
eval() is deprecated ans not supported buy Max6 anymore.
>>eval() is deprecated ans not supported buy Max6 anymore.
Could you elaborate? Is this in the documentation? I use my own simple eval()-based include mechanism and its working fine in 6.04/win7.
Eval is workingo n Max6:
----------begin_max5_patcher---------- 400.3ocqSsraCBCD7r4qvxmSi3UoQ8V+NphPFvMwHhAYujRaT92qefIIsJHT Tuf0N6x3Y1c8o.DoncfoH3WwuiQnSAHjEx.fFiQjCzgxFpxVFQv9rsnlrxkB XCfEtSxEfG8iVAn3eyLYhhWGNBK5OvEMLvRTzEv1dvi5KsiBk64hc4RVI3jW bZplIb7lLyQhKHbcHd63+vqrJQqtmRuVIB5AqRHuI4zFhIw4f.ymUKzyE8.z JHK2FQyXinDixe4Eu9uuKR72niY3qNliCRAUrif29.V4NiuZEFXp+gA3bNOY iwsQYOaNRimy5QyL.uWSgLQjhdjUkq4Qe24T.jb8Dzslil5KZt4MrItM1ecs ZjciAj5T.SlqqonwVTnMmsi66616jzvE+9UjsAXvucXnZ6kkdEO5T7kVPkVE bAE350sK0jdSM64UULw0uVp3JiDqlz3eVJVpZRVfZhdP03ZUzttiLoZjRqPz an0sRSX1JaHW3BsKSDI6H2WehEgJ06Vfd31KcCugMY520564bvO.fBGHI. -----------end_max5_patcher-----------
I would be surprised if they really remove that functionality without adding something to replace it.
Hi it appears that the code in Luke’s original post cuts off mid function.
Is anyone else seeing that?