1
$\begingroup$

How do I lock the camera on an axis in Blender? For example I want the camera to not rotate at all, but only slide perfectly parallel to X or Y axis. This way I can check if one of my objects is centred or not to the parent object.

$\endgroup$
  • 1
    $\begingroup$ The camera or the viewport? $\endgroup$ – VRM May 19 '15 at 16:52
  • 2
    $\begingroup$ Oh I meant viewport. Like how to snap to a particular axis? $\endgroup$ – BlendingLayers May 19 '15 at 16:59
  • $\begingroup$ Use numpad, Num 1, Num 3 and Num 7. Use Ctrl to invert $\endgroup$ – VRM May 19 '15 at 17:19
4
$\begingroup$

To align the viewport to a specific axis you can use the Numpad:

  • Y axis - Numpad 1
  • X axis - Numpad 3
  • Z axis - Numpad 7

You can use the Ctrl key in conjunction with these keys to invert the direction you are looking along the axis. To move along a certain axis while preserving your viewport orientation:

  • To move along the Z axis - hold Shift while scrolling.
  • To move along the X or Y axis - hold Ctrl while scrolling.
  • To zoom along the X or Y axis - scroll.
$\endgroup$
  • 1
    $\begingroup$ If you have a fourth mouse button I strongly recommend binding it to translate directly, much easier to not accidentallyrotate then imo. I need to look up how to do that in blender natively though; I did mine with autohotkey back before 2.5. (mouse5 is zoom selected, default num period i think, for me.) $\endgroup$ – StarWeaver May 20 '15 at 1:33
2
$\begingroup$

You can lock the rotation of your camera by locking the rotation axes in the transform panel.

For moving your camera on a local axe you can press 'G' and 'X' twice to move on the local X axe of your camera

rotation lock

$\endgroup$

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.