Hi, I’ve been working on a script where the following function may be run in or out of edit mode, but I’m finding that when I change the mesh geometry in edit mode the list returned by this function does not update unless I toggle into object mode first.
def findVerts(ob): "Return a list of xyz coordinates for each vertex" list =  for v in ob.data.vertices: list.append([v.co,v.co,v.co]) return list
Does anyone know a way to fix this, besides having the script toggle in and out of object mode automatically? Thanks.
P.S. I’m using Blender2.58 on Windows 64 bit.