I'm using few rotations and scale changes in a model and then export the location of the vertices after the change, but when I do so, the vertices extracted are those of before the transformations and not after. How can I extract the new vertices?
An example for a transformation:
And the code for extracting the vertices:
mesh = bpy.data.objects["Main:Body"] vertices = mesh.data.vertices for vertex in vertices: vertex1 = vertex.co vertex2 = vertex.co vertex3 = vertex.co row = [vertex1, vertex2, vertex3] with open(os.path.join(vertices_output_path, 'vertices.csv'), 'a') as csvFile: writer = csv.writer(csvFile) writer.writerow(row) csvFile.close()