How can I assign a shortcut to popup the following menu when pressed?

enter image description here

I have looked around and I found that I can right click and "Assign shortcut" on other menus, like this example on pivot point, but I can't do it on that submenu.

enter image description here

Also, I tried the method of looking on the Python Console to find out the value of that menu, but there's no value on that one (just on the sub choices).

  • $\begingroup$ It's already part of Object context menu (Select the object, Right-click > Set Origin). Is that fast enough for your purpose? $\endgroup$ – brockmann Aug 9 '19 at 11:20
  • $\begingroup$ I noticed that, but I was looking for a quicker way, like the "m" for move to collection that shows the menu without having to go through submenus. $\endgroup$ – Fabman Aug 9 '19 at 11:22
  • 1
    $\begingroup$ Yeah, get it. By looking through the ui code, you'll see that object.origin_set operator is called via Layout.operator_menu_enum(), not quite sure there is any way adding that to the keymap. In case there is no option you'll have to write a custom operator (addon) or wait until following "bug" is fixed: developer.blender.org/T65704 $\endgroup$ – brockmann Aug 9 '19 at 11:50
  • $\begingroup$ Ah!, Thanks!. I see, I though It was me that I couldn't find it. Although as you say, I wouldn't see that as a "bug" more like a "feature request". $\endgroup$ – Fabman Aug 9 '19 at 11:54
  • $\begingroup$ If you set the keymap to Blender 27X in the Preferences, you can find it under the name: Set Origin. Originally: ctrl+shift+alt+c. $\endgroup$ – FFeller Aug 9 '19 at 16:00

Create a new key map item under 3D View > Object Non-modal and set the identifier to object.origin_set (bl_idname for Object.origin_set() operator). In order to match the definition of the hotkey in 2.7x, set the event to C and enable ShiftCtrl Alt for the modifier keys:

enter image description here

Note: Assigning shortcuts to enum menus like this (operator in this case), is a known limitation and will hopefully supported in the near future: https://developer.blender.org/T65704

  • $\begingroup$ Where did your get that "object.origin_set" value?. I'm asking so I can look for myself next time. thank you for the help!. $\endgroup$ – Fabman Aug 12 '19 at 8:18
  • $\begingroup$ From the source file as stated in my second comment. Right-click > Edit Source. Just make sure Developer Extras enabled under Preferences > Interface to have that option within the context menu @Fabman $\endgroup$ – brockmann Aug 12 '19 at 8:27
  • $\begingroup$ I didn't have the developer extras enabled, now I see it. $\endgroup$ – Fabman Aug 12 '19 at 8:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.