@ulrik Ok, after some thinking I used the
Console.print(ShapeFX1.getAttribute(4));
and found out that to activate the "Curve" mode I had to set the value to 32
ShapeFX1.setAttribute(4, 32);
sorry for this thread, it seemed I could figure it out myself :)