Can I position all selected vertices to the same place?
I basically want to set all of their x positions to 0.
Can I position all selected vertices to the same place?
I basically want to set all of their x positions to 0.
Just found an answer from: http://blenderartists.org/forum/showthread.php?167457-Transform-multiple-vertices-flatten-snap-to
There are two methods that I usually use
select the vertices and press S Z 0 to put all the vertices in the same z-position, then move then set the 'Median Z' value in the transform properties.
put the cursor in the wanted z-position, select the wanted vertices and set pivot to 3d cursor, then press S Z 0
Or programmatically:
import bpy, bmesh
me = bpy.context.object.data
bm = bmesh.from_edit_mesh(me)
for v in bm.verts:
if v.select:
v.co.x = 0
bmesh.update_edit_mesh(me, True, False)