# Get selected Vertexs in a Python script

**URL:** <https://blenderartists.org/t/get-selected-vertexs-in-a-python-script/304546>\
**Category:** Python Support\
**Created:** [April 8, 2003, 7:03am UTC](https://blenderartists.org/t/get-selected-vertexs-in-a-python-script/304546 "2003-04-08T07:03:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stan](https://blenderartists.org/letter_avatar_proxy/v4/letter/s/51bf81/32.png) [@stan](https://blenderartists.org/u/stan)\
**Post date:** [April 8, 2003, 7:03am UTC](https://blenderartists.org/t/get-selected-vertexs-in-a-python-script/304546/1 "2003-04-08T07:03:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![theeth](https://blenderartists.org/user_avatar/blenderartists.org/theeth/32/9_2.png) [@theeth](https://blenderartists.org/u/theeth)\
**Post date:** [April 8, 2003, 7:12am UTC](https://blenderartists.org/t/get-selected-vertexs-in-a-python-script/304546/2 "2003-04-08T07:12:53Z")

</div>

there’s no way to do that.

Martin

---

<div class="post-metadata">

**Author:** ![Ben](https://blenderartists.org/letter_avatar_proxy/v4/letter/b/df788c/32.png) [@Ben](https://blenderartists.org/u/Ben)\
**Post date:** [April 8, 2003, 10:27am UTC](https://blenderartists.org/t/get-selected-vertexs-in-a-python-script/304546/3 "2003-04-08T10:27:11Z")

</div>

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

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

```

-then you can extract vertices from selected faces

```auto
for face in faces:
     vertice = face.v

```

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

Ben
