Skip to content

Instantly share code, notes, and snippets.

Created March 26, 2014 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/9789079 to your computer and use it in GitHub Desktop.
Save anonymous/9789079 to your computer and use it in GitHub Desktop.
test
import bpy
import bmesh
obj = bpy.context.active_object
me = obj.data
bm = bmesh.from_edit_mesh(me)
me.update()
edges = bm.edges
ok = lambda v: v.select and not v.hide
idxs = [v.index for v in edges if ok(v)]
ei = [bm.edges[i].verts for i in idxs]
ii = ei[0][0].index, ei[0][1].index, ei[1][0].index, ei[1][1].index
print(ii)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment