This simple script will let you draw precise lines quickly almost as a CAD software!
It will Set the pivot to the first vertex of a shape object and align it to the first segment. A window will show up allowing to set the Lengh of a spline scaling from the first vertex.
You can find the mcr script in the Category:"_Scripts"
The .ms script will just load on RUN
USAGE:
For best use associate the script to a Key button (es. D that is free by default)
You can add a toolbar button found in "# Scripts" category
Use the key or press the toolbar button to start drawing a line
Repress the key/button to insert a line size or use the rollout tab
Set desired lenght and press ENTER or SET button to resize the spline
If you select a new line the script will take you to the resize rollout directly
The spline Pivot will be centered and aligned to the first vertex of the spline
Script works with any shape with a single spline, if you use a complex spline, the script will set the total lenght
Enjoy precision drawing in MAX!
#Version 0.5
-The script save the last position of the rollout when its used;
-The rollout won't close when you use the set button;
-Added Polar-mode shortcut button.
#Version 0.6
-Now you can resize multiple line at once when pressing the "SET" BUTTON amdmultiple splines are selected;
-Changed Category to _Script from # Script (generate an error on 3ds 2024).
WARNING:
The script will Xform your spline!