3
$\begingroup$

I want to press '1' to go to 1st Render Slot, '2' to go to the 2nd, and so on. render slots

I did this before but my keyboard shortcut file got corrupted. I don't recall how I had set it up in the past.

I'm looking at the Image Generic shortcuts and see no such listings. I am clueless as to what shortcut code to type in. Help?

image generic shortcut

$\endgroup$
3
  • $\begingroup$ Strange, I KNOW I've done this before, but it doesn't appear in the Image Operators API. Maybe it's undocumented? docs.blender.org/api/blender_python_api_2_78_release/… $\endgroup$
    – Triad
    Commented Jan 1, 2018 at 23:13
  • $\begingroup$ That is the default behavior, no need to reinvent the wheel $\endgroup$ Commented Jan 1, 2018 at 23:40
  • $\begingroup$ Hmm, it does not happen in my file. Perhaps it got corrupted too.. Would you mind sharing the API shortcut code? $\endgroup$
    – Triad
    Commented Jan 2, 2018 at 3:16

1 Answer 1

2
$\begingroup$

Found it. API to enter for the shortcut is: wm.context_set_int Make sure Value is set to the slot number minus 1. Context Attributes must be: space_data.image.render_slots.active_index

That's how you get the render slot numpad shortcuts back, if they disappeared like mine did and you don't want to reset everything.

Keyboard Shortcut Solution

$\endgroup$
2
  • 2
    $\begingroup$ I took the liberty to correct your arithmetics. 1 minus the slot would yield negative numbers for slot numbers >= 2. $\endgroup$
    – user27640
    Commented Jan 2, 2018 at 3:44
  • $\begingroup$ This is not default behaviour. By default Numpad 1 and Numpad 2 are Zoom 1:1 and 1:2 respectively, so maybe you reset your custom shortcuts somehow. $\endgroup$
    – Mr Zak
    Commented Mar 14, 2018 at 16:06

You must log in to answer this question.

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