Observed object in callback

Lee's icon

Hi, I have a number of observers set up to monitor different buttons on the launchpad - I have these callbacks going to the same callback function. I can monitor the states of the button press changes in the callback, but it does not pass which observed object made the callback - is there any way to get this info?

thx

S4racen's icon

Are you talking JS?

If you want a location you should observe the whole grid and it should return a string like 1 1 0? giving the grid coordinates and the state of the button press...

I'm sorry i've got no idea in JS though as i do everything in Max...

Cheers
D

Lee's icon

Hi D. Yes, JS - started moving everything over now as easier to write complex functionality (well, I find anyway) - it's actually 1 more level removed by that - in the end I solved it by having 17 callbacks (1 for grid, 1 for each of the 16 buttons) - a bit of extra typing but same result :)

Cheers