Forums > Javascript

M4L Javascript "Get all devices" with callback:- Code check please!

February 23, 2014 | 5:29 am

Hi there,

I’ve been learning javascript so I can get a list of all the devices in live through each track and through each of the first chains in a rack. I’ve looked at examples on the forum and it’s taken me a while to get to where I am now but a few pointers would be great!

I seem to be getting quite a few errors with "pushcontextframe/popcontextframe".

Thanks in advance!

Chris G

Attachments:
  1. alldevsv3.js

February 23, 2014 | 11:25 pm

I asked the same question here with no answer so far:

http://cycling74.com/forums/topic/method-popcontextframe-called-on-invalid-object/

Doesn’t seem to do any harm but pollutes the Max window.


February 23, 2014 | 11:53 pm

More info here:

http://cycling74.com/forums/topic/method-pushcontextframepopcontextframe-m4l/

Apparently youre not supposed to use a liveapi constructor inside a callback function…


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