📋 Metadata
- Author: roaoao
- Date: 2018-10-07 15:54:24
- Type:
answer - Reply to: post_01585
💬 Content
MickHanks:
Could PME allow one to Double Click on an object in 3d view like a cube and have it go into edit mode? Edit mode with a three Vert, Edge and Face selected?
bpy.ops.object.mode_set(mode=‘EDIT’, toggle=False); bpy.ops.mesh.select_mode(type=‘VERT+EDGE+FACE’)
Good tool. Yes, it’s possible.
Add a Stack Key (Object Mode keymap) with this code:
bpy.ops.object.mode_set(mode='EDIT'); C.tool_settings.mesh_select_mode = [True, True, True]
To go back from Edit to Object mode using same Double Click hotkey add a Stack Key (Mesh keymap) with this code:
bpy.ops.object.mode_set(mode='OBJECT')
❤️ 1 likes