Hi all. I know that these kind of questions have been asked a lot here, but I’m a bit lost and what I want is fairly easy (I guess).
In 2.79 I used to have Sensei Format keymaps enabled (from the time Sensei Format was free to use). I was really accustomed with a snapping option, with which when I pressed a specific hotkey the cursor was automatically snapping to the closest vertex or the median point of an edge or surface, whatever was closer. I’d like to customize such an operation inside 2.80, but I’m a bit lost with all these tutorials etc. and I don’t have the time to learn all these new things about python, even though I’m really interested in it.
The series of commands executed when I use this hotkey in 2.79 is this (I copy from the info window):
bpy.ops.object.select_all(action=‘DESELECT’)
bpy.ops.view3d.snap_cursor_to_selected()
bpy.ops.object.select_all(action=‘DESELECT’)
bpy.ops.object.editmode_toggle()
bpy.ops.view3d.snap_cursor_to_selected()
bpy.ops.object.editmode_toggle()
bpy.ops.object.select_all(action=‘DESELECT’)
If I understand correctly, this little scripts enables edit mode and snaps cursor to selected edge or face, which means that the cursor would be placed at the median point of the closest element, and then toggles back to object mode and clears all selections. The question is how should an executable script, that automates this process, look like and how could I assign it to a hotkey of my choice.
I’m trying to bring the new 2.80 UI closer to my previous workflow, and hotkey operations like that are really important, because they speed up my modeling by a great deal.
Thanks in advance!
PS I’ve already found workarounds for this operation online (besides the snap to selected method), but I’d like to have it enabled with a single hotkey if possible.