Hello!
Please excuse my bad english.
I hope someone can help me. I´m writing a phython script for blender and have a problem.
I have import a circle with a number of vertices,gave them a texture and exported it.
Now I wannt to write an script wich opens this object and change the location of each vertice to a point that is saved in a csv file. My Problem is that I don´t now how to select a vertice and give them a new location. (to open the object and get the informations from the csv file works very well)
I thougt it has to look like this:
…
i = 1
context=bpy.context
bpy.ops.import_scene.obj(filepath)
for obj in context.selected_objects:
while (i<10):
x = (X_location[i])
y = (Y_location[i])
z = (Z_location[i])
obj.vertices[i].select = True
obj.vertices.location = (x,y,z)
i = i +1
The X, Y, Z_location are imported from the csv file.
If someone coud help me I woud be very grateful!!!