hello, I’m new to this forum …
I have a question:
I am trying to model different hexagonal tiles for a terrain
that should be modular,
To do this, I have to change the y position of all vertices of the slopes edges to a given position…
but , manually, this takes a very long time…
there is some way to do that automatically, or with a script?
knowing that I have saved the y position i need for each vertex in a text file?
Each selected vertice in the screenshot need to be at one precise position…
Select vertices and scale on the y axis by zero (S Y 0), then input the Y value in the transform panel
or
Position the 3d cursor at the Y location, set the pivot point to the 3d cursor (. period key) then scale by zero on the y axis (S Y 0)
or
Position one vertex to the correct y position, select all the vertices, ensuring the last one selected (active vertex) is the one you originally moved. Set the pivot point to Active Element then scale by zero on the Y axis (S Y 0)
And to add to what Richard said, (going by your screenshot) before scaling, to select all the vertices along an edge like you’ve done, hold down Alt and click somewhere along one of the connecting lines. It’ll select the entire edge loop.
Thank you for your answers,
but I can not do that as suggested,
I probably misspoke … sorry for my English,
I speak french…
because each selected vertice should have a different y position ,
not the same, I seek a way of selecting all vertices
and using a script that read my text file, and change the y position of each vertice, one after the other.
for example, at vertice 0 : 2.5 vertice 1 : 2.42 vertice 2 : 2.34, and so on …
I hope I am clear …
Thank you
Fred
ok,
I got some progress,
I made a little script,
with in a first list the different y positions of the vertices i need,
Then in a second list, I note the different Selected vertices ,
and finally, I travel the second list and changing the y position of each vertice there …
but while my lists have the right information (I checked with a print), I get a result not consistent with my expectations …
it seems that the script does not keep the same order for Selected vertices …
I’m lost …
some screenshots :
before: