ScriptSpot home

Forum topic · General Scripting

Moving position vertex

By Levieux · 2017-03-05

Description

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 (5)
miauu

.


-- the positions are [x, y, z]
move $.selectedVerts [25.0894,0,0]
Reply to miauu
Levieux

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.

Reply to Levieux
Robert

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
)