Javascript REPL/console in Max
Being a Python web developer, I very much enjoy the comfort of interactive shells, be it the dev JS console in modern browsers or the interactive nature of Python.
Is there a way to get this for Javascript in Max? I very often fin myself running quite complex patches just to find that Math.log10 is not supported, and so on. Any kind of interactive shell would be an amazing tool.
Has anybody made such thing yet? Is Cycling74 planning to implement it later or is it already there?
I'd be really interested in that aswell
Just a quick idea about this. By using autowatch you are able to use external editor for your javascript programming work. Reffering to the Max 7 docs:
The Max js object uses version 1.8.5 of the JavaScript language, a Mozilla specific superset of ECMAScript 5.
Maybe if you add this version of js to the interactive shell in your choosen editor, you will be fine.
Haven't tested this yet by the way, if I will have some time I will try it out.
I wonder if you guys have ideas on using the max console for javascript. It's not an accurate representation of what's going on. Arrays are not represented as arrays, and can be easily confused for lists. Strings are indistinguishable from numbers. Is there a better console for representing what's actually going on and not simplified in Max ways?
It's not quite elegant and potent as a real console object, but some years ago i wrote this jsextention to get a bit more of an insight what's going on in my code while writing JS in Max: https://cycling74.com/tools/javascript-object-printer
Maybe that helps a bit...
Thank you Jan I'll try it out!!