To overcome an issue of a spline Create Line method which would more often than not want to weld the vertices and/or not work at all I have first written a short function, and later on, having been asked to support multiple vertices, expanded it to this little script.

Installation: Download the .mcr file and either drop it in viewport or run it once. In Customize dialog you will then find the script in category Advanced.

Comments (3)
Comment policy
Problem? or I missing something.
Nice feature but not work as expected. I expect when I connect 2 vertices in a spline, it'll be automatically welded, but here not the case. There's a newly created line between 2 vertices that I selected but it's a seperated pline, not the same pline. I've to go extra step to weld and that lost the purpose of this useful feature (quick connect with shortcut key).
I expected it works as well as standard "connect" command of spline 3ds max tool. But it doesn't.
By design
As stated in the description, this script was created exactly to avoid the automatic weld. If you wonder about the use case, it's to aid creating a base for Surface modifier.
Thanks. It's just hard to find...
Oh, thanks for answer. I just search whole scriptspot site to find a automatical weld connect vertices script but all of them just create edge leave vertices unwelded (like yours). Honestly, I haven't find out one that do this connect command with correctly welded result.