Connect Spline Vertices
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.
The script is intended to be bound to a shortcut or used in a quadmenu. When exactly two vertices are selected, it will connect them, otherwise an UI will pop up asking you to pick vertices one by one and hit the button when you are done. When using the UI you also have a chance to pick either corner or smooth knot types. After the new spline is created, its vertices are selected, so you can for example change them all to bezier or move the whole lot somewhere else.
Attachment | Size |
---|---|
connect_spline_verts.mcr | 3.14 KB |
Comments
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.
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.
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters
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.