Way to Remap Camera Shortcuts for no Numpad?

Hey there! Really enjoying the course so far!

Anyway, I’m already finding it kind of frustrating to navigate around the viewport without being able to snap to sideview, frontview, topview, etc., since I am working through this course on a laptop without a numpad, and I imagine it will only get moreso as the complexity of the environments increases. I did a cursory Google search but didn’t find anything useful so I thought I’d ask here–is there an alternative way to snap the viewport camera or any way to remap those shortcut keys?


Yes, as an immediate solution, you can click parts of the Cartesian axis gizmo to do this.

If you find you need numpad keys for other things later, it’s possible to add shortcut keys to most in-Editor commands (apparently not these perspective changes, oddly enough), but that requires toolscripts, and those aren’t ideal for what you’re looking for.

The much better solution in my opinion is to use an AutoHotKey script, which works at the OS layer instead of Godot. Method 3 in this article (I’m assuming you’re on Windows; I have no idea if similar things exist for other systems, but they probably do):

Basically, pressing a toggle button (F12 looks free) causes all real keys in the script mappings to represent emulated keys instead, but this is all stuff you would define yourself in a simple text file. If you try this, let me know how it works out for you - seems simple enough, and it might help other people later =)

Thanks so much for your reply! I did try out the AutoHotKey script and it works like a charm! My regular top number keys now function just like the numpad keys would when I toggle my script on.

I actually ended up using the CapsLock key as a toggle though, simply because it has an indicator light that makes it much easier to tell if it is on or off at a glance. Since there isn’t much need for typing when manipulating stuff in the 3D viewport, it’s not too much trouble to turn it on and off for things like renaming or searching for nodes.

If anyone else would like to implement this functionality, here are the steps (for Windows):

  1. Download and install AutoHotKeys: https://www.autohotkey.com/download/
  2. In Windows Explorer, navigate to the folder where you want to create your numpad emulator script and right click, then select New > AutoHotKey Script
  3. Enter the name of your script (mine was just Numpad) with no extension–the program will add the .ahk extension for you
  4. Make sure “Empty” is selected and press “Create”
  5. Right click your newly created script and select “Edit Script.” (You might have to go to the bottom and click “Show More Options” for it to show up as an option.)
  6. To map your top number keys to the numpad, and to use the CapsLock key as a toggle, paste the following code into your script. You can change the toggle key by changing the keycode where CapsLock is to something else, like F12, for instance.
    (Note that the first line is NOT a comment and is necessary for the script to run)
#If GetKeyState("CapsLock", "T")
  1. Save your script, and then to run it, simply double click it. This should cause it to go sit in your system tray.
  2. While it is active, you can click your toggle button (i.e., CapsLock) and then use the regular number buttons like numpad buttons.
  3. To stop running the script, open your system tray and you should see the AutoHotKey icon. When you hover over it, it should show the name of your script. Right clicking it will give you the options such as pause, edit, reload, and exit.

NOTE THAT YOU CANNOT access the shift characters of the number keys when the numpad emulator is on, so while it may seem convenient to set the toggle to a random key you never use and leave it on, this is not wise because then you will not be able to access characters you will need often for scripting such as !, @, #, $, &, * and ( ).


That’s fantastic! I’ll keep this in mind for future use. Bookmarked =)

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms