Skip to content

Instantly share code, notes, and snippets.

@SabinT
Last active August 29, 2015 14:20
Show Gist options
  • Save SabinT/f944f097959e8bfcb72f to your computer and use it in GitHub Desktop.
Save SabinT/f944f097959e8bfcb72f to your computer and use it in GitHub Desktop.
Get selected vertex in blender
def selected_vertex():
for vert in bpy.context.selected_objects[0].data.vertices:
if vert.select:
return vert;
return None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment