Switch track posture in scripting

Hi everyone!

I am just wondering if there is a way of switching track posture by python scripting.

I have the following:
image

and I would like to have something like:
image

Is that possible, is there an easier way?
Thanks!

That’s not track posture, those are different arcs.

Share your code and kicad version and you will get some hints.

Yo are right, I was just setting wrongly the mid point, my bad.

Thanks!