import Blender
from Blender import NMesh
	

listOfV = []
for i in range (8000): listOfV.append([0,0,0])


def applyMesh(listOfVerts, groupOfverts):
	try:
		object = Blender.Object.GetSelected()[0]
		mesh = object.getData()
	except:
		return
	
	vertsGroups = mesh.getVertGroupNames()
	if groupOfverts in vertsGroups: 
		for i in mesh.getVertsFromGroup(groupOfverts):
			mesh.verts[i].co[0] = listOfVerts[i][0]
			mesh.verts[i].co[1] = listOfVerts[i][1]
			mesh.verts[i].co[2] = listOfVerts[i][2]
	
	mesh.update(1)
	object.makeDisplayList()

for i in range(100):
	applyMesh(listOfV, "All")





