Forums > Dev


Feb 05 2010 | 10:25 am

Has anyone been able to get the simplejs example project to work? My Max just complains js: simplejs_test.js: Javascript ReferenceError: SimpleJS is not defined, line 0

I’m sure that the mxe file is on the path because i can instantiate a simplejs object in a patcher.


Feb 05 2010 | 1:10 pm

Did you modify maxclasswrap.js in the C74:/jsextensions/ folder?

Feb 05 2010 | 5:32 pm

no, but that keyword (maxclasswrap) has suddenly made my searches of the forums much more fruitful. thanks.

Feb 05 2010 | 9:01 pm

So I got this working. I’m thinking that given the extra hoop a user would have to go through to use this (getting the class wrapped), maybe for something intended for distribution to less advanced users a Jitter object is still the way to go.

On the other hand, it doesn’t look like there’s any harm in having the class wrapped repeatedly, besides an error message in the max window. I suppose I could just say "make sure you include the line maxclasswrap("myclass", "MyClass") in your script." It doesn’t really seem any more ornery than making them do new JitterObject("MyClass") where it should ideally be new MyClass().

What do you people out there in internet-land think?

Or is there some other way to make a js-addressable object without these hoops that I’m just ignorant of?

Feb 05 2010 | 10:13 pm

You could create the nobox object in a C object and send messages as well.

Feb 06 2010 | 6:33 am

Isn’t that what I’m doing (making a nobox object) when making the class that I then wrap using maxclasswrap? Or is there some other detail here I’m missing?

Sorry if I’m coming across as dense, the documentation on this is less than explicit.

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > Dev