20
$\begingroup$

Can I position all selected vertices to the same place?

I basically want to set all of their x positions to 0.

$\endgroup$
2
  • $\begingroup$ Not sure, it's more a question about how to position several vertices at a (same) given position (not just align on an axis). Am I right, @Petah? $\endgroup$
    – Polosson
    Jan 12, 2014 at 11:05
  • $\begingroup$ @Polosson I believe the OP was asking how to align vertices on the X axis. "I basically want to set all of their x positions to 0". $\endgroup$
    – gandalf3
    Jan 12, 2014 at 18:38

3 Answers 3

33
$\begingroup$

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

  1. 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.

  2. put the cursor in the wanted z-position, select the wanted vertices and set pivot to 3d cursor, then press S Z 0

$\endgroup$
2
  • $\begingroup$ second method is nice $\endgroup$ Sep 4, 2020 at 12:31
  • $\begingroup$ first method is less destructive, does not have secondary effects. second method changes pivot point. $\endgroup$ Mar 19, 2022 at 19:58
7
$\begingroup$

In Edit Mode select the vertices and use scaling S, X to constrain it to the x-axis, after that you can numerically input the scaling value (in your case zero) 0, confirm with enter or LMB

$\endgroup$
4
$\begingroup$

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)
$\endgroup$

Not the answer you're looking for? Browse other questions tagged .