ScriptSpot

Script

Doom Spline Resizer - draw line with precise lenght

By doomgrave · Credited author: Vin Carbone (Doomgrave) · 2019-03-30

Version
0.6
Version requirement
Written for 3ds 2016+
Date updated
2023-08-12
Votes
3
Description

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!

Additional Info

1. inspired by GARP "SetSplinesLength" script but works in a different way 2. if you can help me to improve this script I'll be gratefull 3. Hope you find my script usefull, Max absolutely needed a fast way to use measures!
Videos
Attachments

Tags: spline, scale, CAD, measure, maxscript, sketchup, line, Draw, resize, lenght, align pivot, precision

Comments (5)

1rv · 2020-11-16

Very useful, Vincenzo, many thanks! But if possible, could it memorize the window's last location?
Are you able to make it work with multiple lines?

Updated

doomgrave · 2023-08-12

I have updated the scripts with the features requested! Thank you

Updated

doomgrave · 2023-08-12

I have updated the scripts with the features requested! Thank you

obaida · 2020-10-23

nice and useful script thanks , i think i'll modify it a bit to make it more handy :) .

Glad to share improvements to the script

doomgrave · 2020-10-24

If you want to share i'll be glad!
I'm not a pro maxscripter i've just made it work by trial and errors.

I've updated the script and the Video for it's usage!