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$
  • $\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 Jan 1 '18 at 23:13
  • $\begingroup$ That is the default behavior, no need to reinvent the wheel $\endgroup$ – Duarte Farrajota Ramos Jan 1 '18 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 Jan 2 '18 at 3:16
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
    $\begingroup$ I took the liberty to correct your arithmetics. 1 minus the slot would yield negative numbers for slot numbers >= 2. $\endgroup$ – Duane Dibbley Jan 2 '18 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 Mar 14 '18 at 16:06

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.