Does anyone know how to update the mesh position so that the new vertex positions are recorded. Or to put it another way why doesn’t this work.
import Blender
from Blender import Mesh
myverts = []
mesh = Mesh.Get("Plane")
verts = mesh.verts
mesh.update()
def xyz(pos):
pos = [pos[0], pos[1], pos[2]]
return pos
for firstvert in verts:
pos = xyz(firstvert.co)
myverts.append(pos)
for info in myverts:
print info
It prints the x y z pos of each vertices fine but after moving vertices in the 3d view it doesn’t update thier positions.