Normalize Spline
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.
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.
| Attachment | Size |
|---|---|
| normalizespline_v1.3.mse | 3.92 KB |
| normalizespline_v1.4.mse | 6.4 KB |
| normalizespline_v1.5.mse | 6.59 KB |
| normalizespline_v1.6.ms | 6.68 KB |
| normalizespline_v1.7.ms | 7 KB |
| normalizespline_v1.7.1.ms | 7.03 KB |


Comments
Thanks.
Thank you for this. This is exactly what I always wished was an option with the Normalize modifier. Great tool.
http://luxxeon.deviantart.com/
http://luxxeon.cgsociety.org/gallery/
thx alot, ill try the
thx alot, ill try the workaround.
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.
no vertex showing up in max
no vertex showing up in max 2014.
thx in adv
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.
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
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
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
"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
i'm on 2012x64 when i run the
i'm on 2012x64 when i run the script nothing appends.i try with different version, it does the same when superior to 1.5 and i got this error when running 1.5
-- Error occurred during fileIn in #C:\Downloads\normalizespline_v1.5.mse; line number: 1
-- Error occurred in anonymous codeblock; filename: C:\Downloads\normalizespline_v1.5.mse; position: 217; line: 1
>> MAXScript FileIn Exception:
-- Runtime error: Plugin redefinition: cannot change class ID. NormalizeSpline <<