Can't find object IDs in the Ableton Python API !?

Marc Assenmacher's icon

A little off topic, but this forum is my last hope, since its always active and helpful.

I am looking into Midi Remote Scripts right now to complement my M4L devices. In M4L you can ask every object for its unique ID and work with it as pleased. I can't find any information about object IDs in the Python API though.

Does anyone know something about this? Are there really no unique IDs for objects or am I just really dumb at finding the right information?

Shakeeb Alireza's icon

Also what do you mean specifically by objects? Are you talking object ids in the context of the Live API (see: https://docs.cycling74.com/max8/vignettes/live_api_overview)

Can you explain a bit more what you are trying to achieve?

Marc Assenmacher's icon

Yes, I am talking about object ids in context of the Live API you mentioned. But I want to write a Midi Remote Script and therefore need to use the Python API (https://nsuspray.github.io/Live_API_Doc/11.0.0.xml).

I want to make a Midi Remote Script that does the same. Therefore I need to get the id of the selected parameter. I could look up the path and use it for saving instead of the id but it is rather inconvenient.

Somehow I can't find any clues on ids in the Python API. Therefore I am wondering if there are object ids in the Python API or not.

Shakeeb Alireza's icon

Thanks for the clarification. I'm not sure if this helps you but I recently decompiled Live's MIDI Remote Scripts to better understand their api.

I've put them in a repo (https://github.com/shakfu/live-midi-scripts) for you. Perhaps you can check there how this could work using the existing set of python midi remote scripts included with Live.

Gabriel Lavoie Viau's icon

Hello Marc, I'm in a similar situation and I'm very curious to know if you have found any answers to your question?