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.
2 Answers
To align the viewport to a specific axis you can use the Numpad:
Y
axis - Numpad 1X
axis - Numpad 3Z
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
orY
axis - hold Ctrl while scrolling. - To zoom along the
X
orY
axis - scroll.
-
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$– WeaverMay 20, 2015 at 1:33
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
Num 1
,Num 3
andNum 7
. UseCtrl
to invert $\endgroup$