message script works.. but not code within .js file?

Jun 25, 2013 at 5:07pm

message script works.. but not code within .js file?

I have a question about java script.

I can send a script message (script newobject led) to [thispatcher] to create an led with no problem. But when I use this.patcher.newobject (“led”) inside of a .js file via [js] (with the name of the .js file as its argument)… I get nothing.. only the message “doesn’t understand “led” in the Max window.

I have no problem creating other objects with the same set up.. [button], [message], etc. Why no led? Is there a different name for [led] when referencing it inside of a .js file? I’m confused.

#254102

You must be logged in to reply to this topic.