Select highlighted device in Ableton M4L
Is there a way to navigate to the currently highlighted device in an Ableton set? I managed to get the id of the currently selected parameter through "live_set view selected_parameter" but can't get it to work with just the device I selected.
I want to automap a midi controller to the first parameters of the currently selected device in Ableton. There was a python script that did it but it doesn't work any more since the last update of Live. The controller is not officially supported as a control surface in Live.
The LOM says there is a way to navigate to the "appointed_device" but this works only with a device already automapped to a controller ("blue hand") as far as I understand.
Could anybody point me in the right direction? Thanks a lot in advance!
Yep there's a way.
Couldn't you just use the UserConfiguration.txt to setup selected device control?
Thanks Evan! That LOM is still difficult for me to understand... so from your example I understand I would have to:
- path to live_set.view first,
- then look up in the LOM what I can do there
- find selected_track which brings me one class deeper
- I'm in track.view then where I can lookup selected_device from the LOM
- Now I'm another level deeper and have to look up what I can do in the device class
- I find "parameters"
Is that correct?
And yes, looks like UserConfiguration.txt is more practical for my needs! I didn't know there was a python-free non-programmer friendly version...
You could do it that way, level by level, but there's no need if you just know the path to what you;re looking for. Although it may helpful for understanding the Live API to go down one level at a time. Here's a snippet I use if I ever need to start moving around the API.
Yeah, the user configuration stuff is often overlooked, but it's pretty handy if you just want some basic auto-mapping stuff going on.
Thanks Evan!