If you get spline from Editable Mesh edges or from Section object, they usually contain many unnecessary vertices on the straight segments. It's not easy to delete them, especially if it is a section spline. This is where my script helps you.
Installation:
Run this script with Maxscript -> Run Script command from any folder on your hard drive, then go to the 'Customize User Interface' -> 'Toolbars', browse to category 'Sergo Pogosyan' and add 'CleanSpline' buttons to the toolbar or to the menu. Place icon bitmap files to the maxroot/UI/Icons folder if you need button images. Icon files are same for all my scripts, so you can download and install them only one time.
Tested on 3ds max 8, 2008, 2009.
Usage:
Script works only with Editable Spline objects without modifiers. Undo is not supported in current version.
Select spline and execute script via button on the toolbar, shortcut or quadmenu. Vertex with angle bigger than or equal to the Threshold parameter will become selected. Press Delete button to delete selected vertices, press ok to close the dialog box with selected vertices or press cancel to revert to the previous vertex selection.




0 comments: