Straighten Edge 2 (maxscript)

Last Updated on 06/04/2026

Straighten Edge featured

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.

Straighten Edge maxscript at work in edge mode
Straighten Edge maxscript at work in vertex mode

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:

  1. Drag and drop .mcr file in viewport.
  2. In Customize > Customize User Interface > Category > Veda3d.com assign Straighten Edge on a hotkey or on any element of the UI.

Download

  • 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.

maxscript logo

Related

Tags :

Comments ( 42 )

  • 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 ?

  • 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

    • 首先样条线标准处理下,比如重置变换等操作,保持物体轴向正确;其次执行脚本后鼠标指针变了,然后按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.

    • 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?

      • @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.

  • I can’t find maxroot\UI\Macroscripts. Where is it for the default install location

  • 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.

  • Why when i’m using script in 3d max 2018 it projecting edges on xy plane all the time ?

  • Hello, Sorry but Straighten Edge file rar is empty. How i get this maxscript ?
    thank you very much

Leave a Reply