There is probably a better or more efficient way of doing this but this is one way to go about it..
The command for entering sculpt mode is bpy.ops.sculpt.sculptmode_toggle()
. You can put this into a small script and register the desired shortcut…
import bpy
class EnterSculptMode(bpy.types.Operator):
bl_idname = "object.enter_sculpt_mode"
bl_label = "Toggle Sculpt Mode"
def execute(self, context):
bpy.ops.sculpt.sculptmode_toggle()
return {'FINISHED'}
def menu_func(self, context):
self.layout.operator(EnterSculptMode.bl_idname)
addon_kmaps = []
def register():
bpy.utils.register_class(EnterSculptMode)
wm = bpy.context.window_manager
km = wm.keyconfigs.addon.keymaps.new(name='Object Mode', space_type='EMPTY')
# change the shortcut here..
kmi = km.keymap_items.new(EnterSculptMode.bl_idname, 'TAB', 'PRESS', ctrl=True, shift=True)
addon_kmaps.append(km)
def unregister():
bpy.utils.unregister_class(EnterSculptMode)
bpy.types.VIEW3D_MT_object.remove(menu_func)
wm = bpy.context.window_manager
for km in addon_kmaps:
wm.keyconfigs.addon.kmaps.remove(km)
del addon_kmaps[:]
if __name__ == "__main__":
register()
After running this, you should get a new Space menu item with keyboard shortcuts attached..
…you should now be able to enter sculpt mode using CtrlShift+Tab. It is easy enough to modify the shortcuts (as I think this conflicts with another), see the commented line in the script.