Straighten Edge 2 (maxscript)
Last Updated on 06/04/2026

Straighten Edge (maxscript) allows projecting and placing selected vertices/edges on the given straight line on the Editable Poly object, Edit Poly modifier, and Editable Spline & Line objects.


The script works with the following objects / modifiers:
- Editable Poly object
- Edit Poly modifier
- Editable Spline object
- Line object
version 2.0.0
UI:
No UI
When the SHIFT key is pressed, vertices/edges will be straightened with axis constraints
in the chosen Reference Coordinate Systems. For how to use axis constraints, please read the 3ds Max help Using the Axis Constraints chapter.
When the ALT key is pressed, vertices/edges will be straightened and normalized in their distance/lengths.
Supported Reference Coordinate Systems:
- World
- Working Pivot
- Parent
- Screen
Installation:
- Drag and drop .mcr file in viewport.
- In Customize > Customize User Interface > Category > Veda3d.com assign Straighten Edge on a hotkey or on any element of the UI.
- 2.0.0 (03.04.2026) for 3ds Max 2025+
- Rewritten and improved projection to line calculations
- Added support for constraints by axes of Working pivot, Parent, Screen, World
- Improved normalize calculations
- Removed script “Straighten Edge (Spline Undo)”, it not needed in modern versions of 3ds Max
- Cleaned up and refactored code
Last Updated on 06/04/2026
Sometimes modeling, texturing, or animation work in 3ds Max requires optimization. In the case of a unique task, a tool is required that is only suitable for solving it.
If you could not find a ready MAXScript to solve your problem, feel free to suggest an idea for my next script, and I might develop and post it here for free.
Use my email contact(at)veda3d.com to contact me.


Hi. I cant figure out how to use shift to constrain vertices to z-axis. While shift pressed script is not working. Im using max2015.
Thank You
SHIFT key must be pressed just before final click of mouse. In some configuration left SHIFT doesn’t work try to use right one.
首先样条线标准处理下,比如重置变换等操作,保持物体轴向正确;其次执行脚本后鼠标指针变了,然后按ALT+SHIFT键 点 样条线两端 其中为黄色点 (首),然后另一端点。(注释:轴约束 选择对应X,Y,Z;执行脚本前选择多个点在执行脚本)。自己测试出来的!
Hi. Is it possible to make it so that when you press shift it aligns with the axes of the working pivot ?
Hello! I will take look what I can do. But I have not much time to do it now. So, no promises.
The tool stopped working for the 2024 version of Max. In the process, it throws the vertices into random coordinates. Strange, unpredictable behavior. Without a script, it’s like without hands. I really hope for improvement
That strange. I just tested with 2024.1 Max and can’t see any problems. Works as expected.
首先样条线标准处理下,比如重置变换等操作,保持物体轴向正确;其次执行脚本后鼠标指针变了,然后按ALT+SHIFT键 点 样条线两端 其中为黄色点 (首),然后另一端点。(注释:轴约束 选择对应X,Y,Z;执行脚本前选择多个点在执行脚本)。自己测试出来的!
Hello, does this version work in 2023? I used it for the first time in 2012 max. it was great. I couldn’t run it in 2023.
it’s working. Thank you very much. I wish there were more people like you.
I’m glad to know that this script helped you!
i try to download 1.5.1 but site can’t reached.
Thank you so much! Really helpful tool and appreciate!
Thank you very much. Very helpful.
Does it not work in the v2021?
It works well with 2021 & 2022.
I didnt find veda3d in UI category://
You should drag and drop .mcr file in viewport before searching category.
maxscript error when trying to constraining to axis.
Can you post error log from Maxscript Listener?
i don’t know how to use Shift key.. sometimes works..but almost doesn’t works
Sometimes Shift+click not works, it seems bug or glitch of maxscript. Try use Right Shift instead of Left Shift it’s works better.
BTW, I’m working to change it is behavior of this script and fix this glitch in future versions.
首先样条线标准处理下,比如重置变换等操作,保持物体轴向正确;其次执行脚本后鼠标指针变了,然后按ALT+SHIFT键 点 样条线两端 其中为黄色点 (首),然后另一端点。(注释:轴约束 选择对应X,Y,Z;执行脚本前选择多个点在执行脚本)。自己测试出来的!
Thank you for the script! I have been looking for something like this for a long time. However, it seems when i use it with axis constraints (using shift when selecting each vertex) the points move on the specified axis only like they are supposed to, but do not quite form a straight edge in the specified direction. There is a slight bend still. Any ideas?
Peter, this is known bug. I will try to fixing it in the near future. I let you know.
Peter, please try new 1.5.0 version, it should works correct with axis constraint mode.
@RGhost thank you for the reply. I am trying 1.5.0 now. Although I am still having problems with the axis constraints. Axist constraints only seem to be working on collapsed Editable Poly objects and not within the Edit Poly Modifier as the description indicates. Also, the script doesn’t seem to work at all within Edit Spline modifiers. It only works with collapsed Editable Splines. Is this correct?
Peter, you right. In 1.5.0 constraint mode fixed only for Editable Poly. Edit Spline modifier not supported, so you right about this too.
But, I want improve it, so I will try add support Edit Spline modifier and fix constraint mode in Edit Poly modifier. Probably I will release new version of the script in 1-2 weeks, stay tuned.
Thank you!!!! I will be watching for it. It is a very useful script, but will be even more useful if we don’t have to collapse our objects first!!!! Thanks again!
Peter, I fixed bug with Edit Poly modifier, now script should work properly (v1.5.1). But with Edit Spline modifier I can’t do nothing. MAXscript doesn’t have methods to move points in Edit Spline modifier.
Great! Thank you very much. I will give it a try right NOW!
I can’t find maxroot\UI\Macroscripts. Where is it for the default install location
You can simply drag-n-drop this .mcr to viewport and then setup UI through “Customize User Interface”.
Holy damn, i was switching on and off, but didn’t switch vertexes ;O. Shame on me. Ten lashes on my back.
Thank you !
no, i have all snaps turned off 🙁 Have no idea. It is fresh max 2018 installation.
You should use script with switched ON 3d snaps!
Why when i’m using script in 3d max 2018 it projecting edges on xy plane all the time ?
Are you use it with 3d snaps toggled on? I’m using it in 3ds max 2018 without problem.
hi was wondering if you could make a version compatible with max 2014???
It should works well with 3ds max 2014. Do you have any problems with it?
Hello, Sorry but Straighten Edge file rar is empty. How i get this maxscript ?
thank you very much
Link fixed. Thank for letting me know.