2
$\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$
3
  • 1
    $\begingroup$ The camera or the viewport? $\endgroup$
    – J Sargent
    May 19, 2015 at 16:52
  • 2
    $\begingroup$ Oh I meant viewport. Like how to snap to a particular axis? $\endgroup$ May 19, 2015 at 16:59
  • $\begingroup$ Use numpad, Num 1, Num 3 and Num 7. Use Ctrl to invert $\endgroup$
    – J Sargent
    May 19, 2015 at 17:19

2 Answers 2

5
$\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
  • 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$
    – Weaver
    May 20, 2015 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$

You must log in to answer this question.

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