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.
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.