Has anyone been able to get the simplejs example project to work? My Max just complains
I’m sure that the mxe file is on the path because i can instantiate a simplejs object in a patcher.
Did you modify maxclasswrap.js in the C74:/jsextensions/ folder?
no, but that keyword (maxclasswrap) has suddenly made my searches of the forums much more fruitful. thanks.
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
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?
You could create the nobox object in a C object and send messages as well.
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.