Object(scriptname)

Nov 19, 2012 at 7:55pm

Object(scriptname)

Hello !!!!!!

im wondering if someone has a clue if there is a way :

to force JS to recognize objects at its inlets by their sript names .
lets say , ive got two knobs – their script names stands for “knob_one” , “knob_two” – connected to 0 inlet at JS object .
Can i recognize (inside JS) which knob was actually touched and get its value to process further ?

#65283
Nov 24, 2012 at 9:52pm

Unfortunately not, you’d need to put a [prepend knob-one] before the [js] object so it calls a particular function. You could always look in to creating an abstraction that does this automatically and placing it inside a [bpatcher] but this is probably a lot more work than one simple [prepend]!

#235307
Nov 25, 2012 at 11:11am

yes Luke , i just wanted to know how much lazy i can be . anyway, indexing every message this way (or [knob-one $1]) still remains quite elegant :)

#235308

You must be logged in to reply to this topic.