Guest User

Untitled

a guest
Oct 12th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. class Select_Edges(Operator):
  2.     bl_idname = "mesh.select_edge"
  3.     bl_label = "Select Edges"
  4.     bl_options = {'REGISTER', 'UNDO'}
  5.  
  6.     def invoke(self, context, event):
  7.         if bpy.context.object.type == "MESH":
  8.             bpy.ops.object.mode_set(mode='EDIT') # Enter edit mode if we're not already there and change the selction mode to FACE
  9.             bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='EDGE')
  10.         return {'FINISHED'}
Advertisement
Add Comment
Please, Sign In to add comment