Post #2093: Since the Vertex Tools are not available for 2.8 I was trying to somehow replica

πŸ“‹ Metadata

🏷️ Tags

macro vertex-alignment intermediate unsolved

  • 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:
image

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 :slight_smile:
StraightLine.json (744 Bytes)


πŸ”— View on Blender Artists