script to "convert anchor points to corner/smooth"
hi
I'm writing a script to clean up some imported line drawings and would really like emulate the behaviour of clicking the convert anchor point buttons in the UI. I haven't been able to find a way to do it.
My workflow is basically to select the anchorpoints that need smoothing, click the "convert to corner", which contracts all the bezier handles, then click "convert to smooth" which automatically adds nicely balanced handles with smooth curves between anchors. For my use case this actually works much better than trying to apply 'smoothing'
Simply changing the pathPoint type to PointType.CORNER and then to PointType.SMOOTH doesn't do the job.
And I can't find the button functionality as a menu item so I can go that way either.
Any suggestions greatly appreciated...
