I have no experience whatsoever with max scripting and try to avoid code as much as possible. However, there is a feature that I'd really love to see in Max, and if I knew how to, I'd code it. But I don't, so hopefully someone here with the skills would see the same benefits in it.
I've mentioned the feature before. In Graphite - Loop Tools - There are Curvature features - Straight and Curve (see Vid at 1:10 onwards)
http://www.youtube.com/v/ZrrzWntz0FA
There isn't a setting to constrain these actions to edge, face etc., like there is in Edit Poly - Constraints. It would be really useful when modeling hard surface objects, especially high poly, to constrain it. I've been modeling HP vehicles and to be able to easily arrange lineflow would be such a time saver and would make things a lot easier.
Can anyone do this?
Replies
Also would help to name your thread better. Something more like "3ds Max Graphite curvature = constrain?" or something.
Unconstrained Straighten creates the shortest path between the two end vertices. Constraints - Edge - Straighten would constrain it to the surface's edges.
In the examples, it would be easy to constrain and scale the vertices to straighten them, then rotate if needed. But I've come across a lot of times, where scaling and rotating changes the surface, that this would really be useful. In the same way that Make Planar (X,Y,Z) can restrict to edge, you could do the same with this but not be restricted to X,Y,Z.
If a Mod wants to change the name of the thread please go ahead.
I haven't been able to get it working to try it. I'm running Max 2010. I've opened a new script in Max, copied and pasted the Script, then saved. I've then run the script. What do I do next?
http://www.luxinia.de/index.php/ArtTools/3dsmax
I used it in conjunction with setflow for this and a few other little tests. They worked... but spheres and cubes aren't real working conditions
And now for the unneccesarily huge image:
The reason it's worked cleanly in your example with the sphere is because you used Set Flow, which perfectly corrected the geometry of the sphere (you could have done this without using the Straighten Script). But thanks anyway.
it will straighten it with respect to the direction of the surrounding edges.
High curvatures are a problem for this script so if it doesn't work select a subsection of the edge and try again.
www.robertfletcher.org/public_files/Scripts/edge_straighten.ms
Give it a go and perhaps it can be made more robust with some noodling
It straightens loops whilst constraining to edge. The problem is that it's not been implemented well, making it tricky to work with at times. You need to select the loop, apply the script and then click on the two end vertices. Doing this whilst rotating the view isn't easy.
Does anyone know how to change this code so that you only need to select the loop and then apply the script (without having to select the two end vertices)? So it would be just like Graphite Tools - Loop Tools - Straight. Rob I think this is similar to how you approached it.
http://www.illusioncatalyst.com/ic_shape_intro.php
I've been looking for a solution for edge/face constraint for Straighten but it would also be a very useful addition for Curve too. So if anyone does attempt to code it at some point, if it's possible, then I'd say that the best implementation would be via the Editable Poly - Edit Geometry - Constraints checkboxes.