Normalize Spline

Version: 
1.7.1

This scripted plug-in normalizes a spline by number of segments instead of the segments length. With options to show the vertex ticks, to close the splines, and optimize by deleting points relative to an angle threshold.

Additional Info: 

Launch the script.
Select an editable spline or line and apply the modifier "Normalize Spl. 2"
Change the parameters as you like.
If you want to reset the modifications, just click the button "reset spl.".

All the parameters are saved in the object properties -> "user defined".
If you modify the spline and delete the modifier, the spline will stay
to its current state. To reset after deleting, apply again the modifier
and click the button "reset spl.".
So, important : never delete or change manually the "user defined properties".

To load automatically the script at startup, copy it in the following folder :
C:\Users\[your name]\AppData\Local\Autodesk\3dsMax\2012 - 64bit\enu\scripts\startup
------------------

v1.4:
-Like the version 1.3 but in the modifier list.
-Record properties of each spline object in its user defined properties.
-The "Optimization" is corrected to always keep the first and last point.
-You cannot disable the modifier (click "reset spl." to get the initial state)
-This scripted plug-in is not animatable.

v1.5:
-When normalizing, now it always keeps the last point and give a correct number of segments.
-In "Optimization", change the default parameter to "Keep < 180°"

v1.6:
-Works with 3ds Max 2013
-Corrected an issue with closed splines

v1.7:
-Corrected a small issue with the "close spline" check box
-Added a button "Bake spl. state" that will copy the spline state in the user properties

v1.7.1:
-Corrected a bug with "relative to total spl. length" check box when the number
of segments was too low to close one of the splines.

Version Requirement: 
2009, 2010, 2011, 2012, 2013
Video URL: 
AttachmentSize
normalizespline_v1.3.mse3.92 KB
normalizespline_v1.4.mse6.4 KB
normalizespline_v1.5.mse6.59 KB
normalizespline_v1.6.ms6.68 KB
normalizespline_v1.7.ms7 KB
normalizespline_v1.7.1.ms7.03 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
baszermaszer's picture

Fantastic work!

Absolutely awesome tool for Max 2009! Thank You!

luxxeon's picture

Thanks.

Thank you for this. This is exactly what I always wished was an option with the Normalize modifier. Great tool.

berdinatilli's picture

thx alot, ill try the

thx alot, ill try the workaround.

LittleLordPotala's picture

Thanks for the report,

I've already seen this little issue but, sadly, I cannot correct it because it's a bug of the viewport in Max 2014.
The script does the same thing as :
right click -> object properties -> general tab -> show vertex ticks.
The same ptoblem appears if you apply an "edit spline" modifier onto your spline and activate the "show vertex ticks" option...

As a workaround, you can add an "edit spline" mod on top of the "Normalize spl.2",
activate the vertex sub-object, go back to "Normalize spl.2" and toggle on the "show end result" button.

Otherwise, I'm sorry but we just have to wait for the next product updates !

Best regards.

berdinatilli's picture

no vertex showing up in max

no vertex showing up in max 2014.

thx in adv

jewboy's picture

Wonderful

Thank you for the script! This is seriously needed in Max and I have no idea why a simple but very useful tool that has been in Maya for a long time is still not in Max.

asymptote's picture

Thx barigazy, that fixed

Thx barigazy, that fixed it.

What a cool little script this is, we're lucky to have you guys fix crap AD just don't care about anymore.

thanks

barigazy's picture

Just open the script and in

Just open the script and in line 8 change range to be greater then 1000
something like range:[1,1e6,10]

barigazy

asymptote's picture

This is great, much more

This is great, much more accurate than standard normalize spline. but why the 1000 segment limit ? Is there any way to increase this ? I am trying to keep the distance uniform over a large spline and don't want to start breaking the spline up to get more segments in.

tia

LittleLordPotala's picture

"Plugin redefinition : cannot change class ID"

If you have this error, that mean that one version of the script is already loaded in memory, so you cannot load another version. You are trying to load two versions of the same script.
The solution is :
-first, if you have a copy of the script in the "\scripts\startup" folder, just delete it
-then, before loading any new version of the script, you have to restart 3ds Max

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.