Get selected Vertexs in a Python script

Hello everybody [!]
Does anyone know how (int the edit mode) to enable a Python script to get the selected Vertexs. Is there maybe some routine like:
mesh.verts.GetSelected() ?
Thanks in advance,
Stan

there’s no way to do that.

Martin

-You cane get only selected faces( in Face Mode (press F-key in 3D window)

obj = Blender.Object.Get(nameobj)
mesh = obj.data
faces = mesh.getSelectedFaces()

-then you can extract vertices from selected faces

for face in faces:
     vertice = face.v

This is the only way i’ve found with this API.Hope it helps.

Ben