Hello,
I had posted a while back on the Live API where I am getting a "jsliveapi: get path: error calculating the path".
Here is the minimum code to get the error:
NewObject = new LiveAPI(this.patcher, null, "live_set","tracks", 0 ,"mixer_device", "panning");
post("\n=== NewObject.path: ",NewObject.path);
The path comes back as:
js: === NewObject.path: "live_set tracks 0 mixer_device"
Other things I've tried:
1) just sending in the string "live_set tracks 0 mixer_device panning"
2) using the goto function
In both cases I get the same error.
Previously I was sent a nice bit of code that shows this workig well with the live.path coupled with the live.observer but I can't seem to get the same thing to work in javascript via the LiveAPI.
Any thoughts and help would be greatly appreciated.
Thanks,
Brett
[Fixed] Help with "get path: error calculating the path"
-
DirectGumby
- Posts: 50
- Joined: Sun Oct 25, 2009 2:40 pm
[Fixed] Help with "get path: error calculating the path"
Last edited by DirectGumby on Mon Jan 17, 2011 8:29 am, edited 1 time in total.
-
DirectGumby
- Posts: 50
- Joined: Sun Oct 25, 2009 2:40 pm
Fixed: Help with "get path: error calculating the path"
Hello,
While looking for a diffrent answer I ran across this link:
http://forum.ableton.com/viewtopic.php?f=35&t=130558
The interesting this to me is that when I added this to my code I added one line to print out the path after do the "goto" without the full path and you get the error "jsliveapi: get path: error calculating the path" --- but, in this case you still get the value.
Thanks,
Brett
While looking for a diffrent answer I ran across this link:
http://forum.ableton.com/viewtopic.php?f=35&t=130558
Code: Select all
function mixer_nav()
{
var firstTrackMixer = new LiveAPI(this.patcher, null, ["live_set","tracks",0,"mixer_device"]);
firstTrackMixer.goto("volume");
post(firstTrackMixer.get("value"));
firstTrackMixer.goto("up");
post(firstTrackMixer.path);
}
Thanks,
Brett