Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. obj = bpy.context.object
  2. me = obj.data
  3. bm = bmesh.from_edit_mesh(me)
  4.  
  5. selected = [e for e in bm.edges if e.select]
  6.  
  7. seamed_edges = [e for e in selected if e.seam]
  8.  
  9. if seamed_edges:
  10.     for edge in seamed_edges:
  11.         edge.seam = False
  12. else:
  13.     for edge in selected:
  14.         edge.seam = True
  15.  
  16. bmesh.update_edit_mesh(me, True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement