I need to move vertices along axis Z GLOBAL but I don't find how to do it. I've tried this:
ob = bpy.data.objects["object1"] #the vertices belong to object1
mat = ob.matrix_world
matloc = ob.matrix_local
for i in range( 0, len(poligonos) ):
v = mesh.getVertex(0, poligonos[i]) #poligonos is an array where I store the index of each vertex that I want to move
glo = mat * v.XYZ
glo.x = glo.x
glo.y = glo.y
glo.z = glo.z - 0.1
aux = matloc * glo
v.setXYZ([aux.x, aux.y, aux.z])
But this code moves my vertices to weird locations and what I need is the vertices go down in 0.1