So right now i have code that looks like ...
Code: Select all
selected_scene_observer = new LiveAPI(this.patcher, testCallback, "live_set", "view");
selected_scene_observer.property = "selected_scene";
Code: Select all
function testCallback() {
post("SCENE CHANGED!\n");
// Need to work out what scene has now been changed to ... how?
}
If i was using the patch/object view i'd just use M4L.api.GetSelectedSceneIndex. So my question is, how do i call that from within my javascript file?