Moving position vertex

Hello, can you help me, i want the script to move the x position of vertex:

move $.selectedVerts ["?",0,"?"]

"?" i dont want to move this position (y and z)

Thanks for your help,
Sébastitne

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

.

-- the positions are [x, y, z]
move $.selectedVerts [25.0894,0,0]
sebastienlevieux's picture

Hello, i think it is not the

Hello, i think it is not the good script, i want to move the x position to 0 and let the y and z position at the same place.

miauu's picture

.

Please, next time be more specific. :)

sable806's picture

Vertex X pos to 0

Hello Sebastien This chunk of code should work i've tested it.

selVerts = $.selectedVerts
for verts in selVerts do 
(
	verts.pos.x = 0
)
sebastienlevieux's picture

Merci Robin!! Good job!!

Merci Robin!! Good job!!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.