ScriptSpot

Forum topic · General Scripting

Moving position vertex

By sebastienlevieux · 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 · 2017-03-08


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

sebastienlevieux · 2017-03-10

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.

Vertex X pos to 0

sable806 · 2017-03-10

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


selVerts = $.selectedVerts
for verts in selVerts do 
(
	verts.pos.x = 0
)

sebastienlevieux · 2017-03-10

Merci Robin!! Good job!!

.

miauu · 2017-03-10

Please, next time be more specific. :)