22
$\begingroup$

Can I program a direct short-cut (keyboard) for the functions "cursor to selected" and "selection to cursor"? Couldn't find them under the User Preference/Input tab. I know they're under Shift+S, but then I still have to select from the pull-down menu, and that is too cumbersome.

$\endgroup$
2
  • 3
    $\begingroup$ Perhaps you already know this, but for pulldowns it often helps to use the menu accelerators. You can use the number row to select entries in order (1 for the top entry, 2 for the second, 3 for the third, etc.). Or you can use the letter key corresponding to the underlined letter in the entry you want. For example both Shift S 2 and Shift S T will snap the selection to the cursor. $\endgroup$
    – gandalf3
    Commented Dec 16, 2015 at 11:45
  • $\begingroup$ @gandalf3♦ I answered similar question some time ago and presented the same solution (blender.stackexchange.com/questions/36894/…). The answer got 'duplicate' status and was closed, but I think it shouldn't be (cause it shows different solution from the one that NᴏᴠɪᴄᴇIɴDɪsɢᴜɪsᴇ aka HATMAN presented). Could you please reopen it? $\endgroup$
    – Paul Gonet
    Commented Dec 16, 2015 at 20:47

2 Answers 2

24
$\begingroup$

Bring up your snap menu with Shift+S.

Hover your mouse over 'cursor to selected', and then click on it with the RMB RMB. You will see an option to either add or change the keyboard shortcut.

Hover your mouse over the box that appears, (it should tell you to press a key), and then press the desired shortcut one key at a time while still holding them down to create your new shortcut.

Make sure to save your new shortcut as defaults by going to user preferences by pressing Ctrl+Alt+U, and then save user settings.

animated gif showing the process of creating a shortcut


In 2.8 and later, you can add a new shortcut to Quick Favorites which will give you a small menu with the keyboard shortcut Q

Simply RMB RMB and select Add to Quick Favorites from the choices that appear.

enter image description here

$\endgroup$
1
9
$\begingroup$

Make a user-defined keyboard shortcut.

I sacrifice the default shortcut for To Sphere (shift+alt+S) and made it bpy.ops.view3d.snap_cursor_to_selected() instead.

enter image description here

$\endgroup$
1
  • $\begingroup$ You don't need to sacrifice, there is "Add new..." button visible $\endgroup$
    – sheerun
    Commented Dec 2, 2022 at 1:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .