Run this script on one or multiple connectors to smooth and then straighten a connector to consist of only a start and an end control point.