Select highlighted device in Ableton M4L

    Mar 04 2016 | 9:34 pm
    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!

    • Mar 04 2016 | 10:37 pm
      Yep there's a way. Couldn't you just use the UserConfiguration.txt to setup selected device control?
    • Mar 05 2016 | 7:50 am
      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...
    • Mar 05 2016 | 3:50 pm
      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.
    • Mar 07 2016 | 8:27 am
      Thanks Evan!