Post #1586: ![](https://blenderartists.org/user_avatar/blenderartists.org/mickhanks/48/77779

📋 Metadata

  • Author: roaoao
  • Date: 2018-10-07 15:54:24
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_01585

🏷️ Tags

stack-key hotkeys mode-switching intermediate solved

  • Stack Key Editor
  • Python Scripting

💬 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


🔗 View on Blender Artists