Post #2093: Since the Vertex Tools are not available for 2.8 I was trying to somehow replica
π Metadata
- Author: actimelvanille
- Date: 2019-03-23 19:58:30
- Type:
question - Quality Score: 7/10
- Replies (1): post_02096
π·οΈ Tags
macro vertex-alignment intermediate unsolved
βοΈ Related PME Features
- Macro Editor
- Python Scripting
π¬ Content
Since the Vertex Tools are not available for 2.8 I was trying to somehow replicate the tool where you select some vertices and they get lined up like so:

The difference between my way and the way vertex tools handled it is that my first and last vertex also get transformed which I donβt want.
Does anyone have a way to achieve this?
With my method you would have to select the first and last vertex and then these 3 items in a macro would execute:
bpy.ops.transform.create_orientation(use=True, overwrite=True)
bpy.ops.mesh.shortest_path_select()
exec(bpy.ops.transform.resize(value=(0.0, 1.0, 0.0), constraint_axis=[True, False, False]))
any help is really appreciated 
StraightLine.json (744 Bytes)