Post #3054: ![](https://blenderartists.org/user_avatar/blenderartists.org/leafar/48/661663_2

📋 Metadata

🏷️ Tags

macro hotkeys configuration advanced

  • Stack Key Editor
  • Python Scripting
  • Hotkey Configuration

💬 Content

Leafar:

In order to improve and get faster and right bone placing when rigging I’ve got an idea right now I would try tomorrow

Hi @Leafar,
Try this:
Add a Stack Key for Mesh Edit Mode hotkey (Mesh keymap) and use this code in Command tab:

bpy.ops.mesh.loop_select('INVOKE_DEFAULT', extend=False, deselect=False, toggle=False); bpy.ops.view3d.snap_cursor_to_selected(); bpy.ops.object.mode_set(mode='OBJECT'); C.view_layer.objects.active = C.object.parent; bpy.ops.object.mode_set(mode='POSE')

And another Stack Key for Rig Edit Mode hotkey (Armature keymap):

bpy.ops.view3d.select('INVOKE_DEFAULT', deselect_all=True); bpy.ops.view3d.snap_cursor_to_selected(); bpy.ops.object.mode_set(mode='OBJECT'); C.view_layer.objects.active = C.object.children[0]; bpy.ops.object.mode_set(mode='EDIT')

Or import this file.


❤️ 2 likes


🔗 View on Blender Artists