Receiving the connected inout object through JS

Nov 27, 2010 at 8:53pm

Receiving the connected inout object through JS

I think this should be easy, but i cannot figure out how this is done…

Here is what i want to do…

I would like to grab the name of the object that is directly connected to a JS object’s input in order to use it programmatically. For example… I created a knob that is connected to a JS object. The knob is named, “knob1″. I would like to be able to grab that in my script. This way i can differentiate what is sending to my script and use it as an identifier. Any help would be greatly appreciated.

#53597
Feb 7, 2011 at 1:36pm

The [js] object is unaware of how many/which objects you have hooked up to it’s inlets, they all just count as messages received. You need to look in to using something like [prepend] to create the identifiers.

#192715

You must be logged in to reply to this topic.