0

How can I take that bpy.data.scenes python line and make a keybind of it?

enter image description here

Ray Mairlot
  • 29,192
  • 11
  • 103
  • 125
Sensimas
  • 375
  • 2
  • 13
  • Can copy from the top console but how does one pass it as the keybind? – Sensimas Jan 20 '17 at 10:24
  • 1
    I would have marked this a duplicate of this, but it may have been non-obvious that Ctrl+Tab also works in the UV/Image-Editor. – Ray Mairlot Jan 20 '17 at 12:25
  • Buttons get asigned using the method you've provided, but nothing happens when I press them. What is causing this ? – Sensimas Jan 20 '17 at 12:39
  • 1
    What keyboard keys did you assign them to? It's possible the keys you chose are already in use. I suggest combining Shift, Alt or Ctrl with them to make the shortcut unique. In my example I assigned Shift+Q to Vertex mode. – Ray Mairlot Jan 20 '17 at 13:20
  • I just tested 1, 2, 3, and 4 for the selection modes and they worked, so it should work for you. – Ray Mairlot Jan 20 '17 at 13:32
  • Had double asignment on the same button in the same submenu. It is now working as intended. Thank you very much Ray ! – Sensimas Jan 20 '17 at 13:42

1 Answers1

2

There is already a shortcut for the UV selection type menu, it is Ctrl+Tab.

After pressing Ctrl+Tab you can right-click on Vertex, Edge, Face or Island and choose Add Shortcut.

This is much easier than trying to do it via the key-bindings editor as you can see from the complexity of the new shortcut after it is added:

enter image description here

To make these new shortcuts appear in all files go to File> User Preferences> Save User Settings.

Ray Mairlot
  • 29,192
  • 11
  • 103
  • 125