Forums > Javascript

Receiving the connected inout object through JS

November 27, 2010 | 8:53 pm

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.


February 7, 2011 | 1:36 pm

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.


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