

- #How to align vertices in blender how to#
- #How to align vertices in blender software#
- #How to align vertices in blender code#
- #How to align vertices in blender series#
The part I'm stuck at is getting the python script to be processed in a modal manner so that I can toggle which axis coordinates to preserve.
#How to align vertices in blender code#
I already have the operation part of the code figured out and working.

Yeah, that's actually exactly what I've been doing the last couple of days. It is the easiest way I know to slide the verts along the straight edge, considering it takes more time/effort to set up the contraints and/or the custom transform orientation. Once you do that, then yes indeed you would be best to do the vertex slide tool to keep things straight. Yes, my first point was the actual creation of the vertices on the straight line. In 3DS Max, this is called "edge constraint". So you need to use something like Vertex Slide or Custom Transform Orientation to let your vertices slide mathematically perfect along the edge. It's something that really annoyed me for a while until I discovered 'constraints'. I don't know much of Blender, but if you manually move the vertices you inserted into the edge, the edge won't be a straight line anymore (if you zoom in really close you'll see it's a bit sloppy from not being mathematically perfect). This way you recreate the vertices all along that single edge. Select those end points, hit 'F" to create an edge, and the either subdivide that edge. If you learn to code Python tools for Blender then you can pretty much add most "simple" features like these yourself. You can find educational material both on Python and on making scripted tools for Blender, so it'd be a great idea if you could dedicate some time to study this. You see, Blender has an API bound with Python, so you can build your own modelling tools by coding Python scripts. It'd be mapping each vertex position to the 3D line formed by vertices V and V in a selection of 'n' vertices, and you would do this based on the closest distance from each vertex to this 3D line. It doesn't sound over complicated either.
#How to align vertices in blender software#
It sounds too specific what you're asking (it's not necessarily a bad thing).Įven in 3DS Max, a commercial software with powerful modelling tools, there's only axis-aligned planar alignment of vertices (that is, it's limited to the XY, YZ and XZ planes) It's not arbitrary like what you want, and not in a vector\3D line, and not with regard to the order in which the vertices were selected.īut you defined all the steps for what you want and that's an interesting point - it shows you understand the logic behind it, and you even presented ideas for options for toggling (the X,Y and Z constraints you mentioned). Thanks in advance for any insight you can provide.


#How to align vertices in blender series#
#How to align vertices in blender how to#
I've been searching all over as to how to align a selection of vertices in Blender along an arbitrary axis but haven't found anything that points to a ready solution. I'm new to Blender and I have a question that you modeling veterans can probably answer:
