Post #2096: You can snap 3D Cursor to selected verts and use it as a pivot point:
📋 Metadata
- Author: roaoao
- Date: 2019-03-23 20:39:18
- Type:
answer - Quality Score: 8/10
- Reply to: post_02093
- Replies (2): post_02097, post_02099
🏷️ Tags
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
You can snap 3D Cursor to selected verts and use it as a pivot point:
bpy.ops.view3d.snap_cursor_to_selected()
bpy.context.tool_settings.transform_pivot_point = 'CURSOR'
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]))
❤️ 2 likes