Straighten Edge

61 votes
Author Name: 
Royal Ghost

Straighten Edge – MAX script, allows to project and after it to place selected vertex/edges on the given straight line on the Editable Poly object, Edit Poly modifier and Editable Spline & Line objects.

v1.5.0 (30.09.2018)
- Fixed bug in constraint mode when verteces not align properly (constraint mode works in World coordinate system)
v1.4.0 (01.02.2009)
- Added restrictions of straight. Use SHIFT key to get straight with axis constraints.
- Now snap mode and type are restored after straighten. When straighting begins, snap mode changes in active and snap type in 3D.
v1.3.0 (05.08.2008)
- Added normalize when straight. Use ALT key for get vertexes/edges normalized.
v1.2.0 (23.05.2008)
- Added support for Edit Poly modifier
- Added support for Editable Spline & Line objects (vertex only).
v1.1.1 (21.08.2007)
- Fixed bug when vertexs are not placed properly when Constraints is on
v1.1 (16.05.2007)
- Added support to work with edges
- Added support for modifiers over Editable Poly baseobject
- Now after vertex/edges straightend snap mode off

Tablet Edition (sEdgeT.mcr)
v1.4.0T (Tablet Editional)
- pickPoint function replaced by mouse tool for pick points, because pickPoint not correctly works with tablets. (code based on Sergo Pogosyan scripts)
- when picking points no rubberband displayed.

Version Requirement: 
sedget.mcr13.33 KB


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Royal Ghost's picture

Updated download link. No

Updated download link. No changes in script, sorry.

Royal Ghost |

themaxxer's picture

any news about axis

any news about axis constraints...?
if this would work I would use the script every day! :)


Royal Ghost's picture

Axis constraints not work

Axis constraints not work properly, please do not use it. I have no time and experiences of math to fix it. :(

Royal Ghost |

appius's picture

same for me. the shift key

same for me. the shift key doesn't work.

themaxxer's picture

the constraint thing is not

the constraint thing is not working for me either


grasshopper's picture

Axis Constraint

I am still having problems using the constraint function. When I hold shift it no longer functions.

It is working on my home PC but not at work. Both Windows 7 both Max 2013. Any clues as to why? thanks

Royal Ghost's picture

Cobra: I can't understand

Cobra: I can't understand what the problem. Can you send me video or example with this problem?

Royal Ghost |

Cobra's picture

Hi everyone, I am having a

Hi everyone,

I am having a problem when trying to use this script.
In the animated diagram on the left above it shows it aligns the points perfectly, I am trying this to a peice of track I am editing and it doesn't align it the way it is shown above, actually the points get all messed up.
Please can someone help me.

Thank you

Fredblub's picture

Hey, thanks a lot! The

Hey, thanks a lot! The replaced fonction works great!
No regret for the lost rubber band since I do not have to drop my pen for the moose anymore.
You did that fast and efficiently
Thanks again!

Royal Ghost's picture

Tablet Edition

Fredblub: It seems another :/ max bug. Seems pickPoint maxscript function doesn't work properly. I created "Tablet Edition" where replace broken pickPoint with another working function. Please try attached sedget.mcr!

Also I recommend submit as a bug to Autodesk about this broken function.

p.s. About not proper work of constraint mode - sorry, still no fixed

Royal Ghost |

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.