It works even better than intended! Thank you! 
 
There are a couple things that could be improved: 
- Points in "Make Point" mode are added to the polyline itself. You can made checkbox for this mode. 
Of course, I can cut the curve by these points and then connect them, but I want a shortcut. 
 
- Note that, in "Make curve" mode. If a polyline has only one point selected, then after applying the script the whole polyline turns into a curve.  This is rather wrong, for I want to smooth out one point.  
I have a solution though - I'll just detach the corner I want and apply the script. 
 
Thank you for taking the time to do this, with scripts like this you make it very easy to work in your favorite program 
 |