Retrieving and Setting clip automations

Grem's icon

Hello everybody,

I am working on a project that allows to edit automation curves with a digital pen. I then need to retrieve existing automations to print them on paper and to set new ones when someone input/edit them with the pen.

Is it possible to retrieve or to set an automation from a clip or a track with a list of points?
For now I can only observe or set values at the current time but I cannot find a way to get/set all the points directly.

I can do such a thing from javascript with functions objects in max but I am not sure it is possible with the Live API...

Any hints or ideas would be greatly appreciated!