7

How can I add a shortcut for the 'Only Render' checkbox in the Display section of the Properties pane?
I use the function a lot to get a better view on things and would save time if there was a shortcut for it.

PGmath
  • 25,106
  • 17
  • 103
  • 199
RedKrovvy
  • 159
  • 2
  • 7

1 Answers1

10

In ⎈ Ctrl⎇ AltU> User preferences > Input, navigate to 3D view > 3D view (Global), then scroll to the bottom of 3D view > (Global) and click add new.

  1. Put wm.context_toggle as the operator.

    This is an operator which toggles a property given by a datapath parameter.

  2. Put space_data.show_only_render as the datapath parameter (you can put stuff there even if it appears grayed out). You can get the datapath for any checkbox by right clicking on it and selecting Copy Data Path. The datapath can then be pasted with ⎈ CtrlV.

  3. Assign a key combination which doesn't conflict with an existing shortcut (e.g. ⇧ ShiftQ)

enter image description here

Now pressing ⇧ ShiftQ (or whatever you assigned as the shortcut) in the 3D view will toggle show only render.

gandalf3
  • 157,169
  • 58
  • 601
  • 1,133