You can’t apply transformations to cameras, as they contain no data (as opposed to say mesh objects, which contain mesh data). So there’s nothing to apply really.
Ctrl Alt Zero is shortcut to align Active Camera to View.
It is not shortcut to lock camera to view.
By default, there is no shortcut for that option.
And purpose of that option is to have camera view following view navigation.
If you want to lock location or rotation of camera, you have to enable locks in Transform panel.
Here in this GIF, I start off at the angle and perspective I want then I press Ctrl-Alt-0 to get my camera to that view.
But you can see when I press Crtl-Alt-0 the camera automatically zooms right in, then I press 0 to get out of that camera view. Then I press 0 again to get back into the camera view and zoom out. You can see the perspective is not as I want it.
This is the perspective I want:
So this is the perspective I don’t want (which is the camera view, pressing 0):
The operator align camera to view doesn’t take focal length into account, you probably need to lower it in camera properties so it matches your perspective view exactly
I altered the focal length. Now when I press ctrl-alt-0, it doesn’t zoom in, its the right distance. However, the camera still has the wrong perspective.
Here’s the camera/render view. The vanishing point of the wood at the sides is very different to the vanishing point of my non-camera/render view.
Wrong perspective (this is my camera/render view):
Perspective non-camera/render, this is the perspective I want:
How is it not precise ? in my experience it works as expected any time I use it (which is not often, but I just tried recreating the issue and I can’t)
@Ian_SAfc I can see the difference in viewpoint… I can’t explain it tbh. I generally place my camera by locking it to the view and moving the view, so if everything else fails, you can still do that.
Hmm, I do have it locked to view. I deleted my exisitng camera and added a new one. Same deal. Maybe theres something in my setup somewhere else thats messing things up. I can get my camera to the right distance etc., but never to the same perspective as my view.
After playing with it for a while, It does seem to be fairly precise with the location of the camera, it’s just how the viewport compensates for the camera/viewport offset and FOV
@Ian_SAfc
I still can’t replicate your issue exactly, but do you have any x/y shift on your camera?
It really should not. Can you please share your file? you can strip it down to the basics, remove the models, etc. Just leave a stand-in model (let’s say a few boxes where the important bits are) so the difference between viewport and camera is obvious.
What jump ? I don’t think I replicated all the steps.
be in camera view (with “lock camera to view”)
pan view (shift+mmb)
exit camera view
pan viewport (you said “move”, so I assume any viewpoint transformation works)
execute operator “align active camera to view” (ctrl+alt+˚numpad0)
I see nothing unexpected ?
Oh ok I get it now, nevermind. You just have to reset your view with the home key. But that can’t be the same issue OP is having, because their viewport and their camera views appear actually different, not just “differently centered”.
Ok, frankly I’m a bit stumped. I can see the change in viewpoint, and I checked by placing an empty as close as possible to the perspective viewpoint, and it sits meters away from the camera position. Then I tried “align active camera to view” (using the same perspective viewpoint from your file) and it worked, although it also zoomed in on the model quite a bit. I then lowered the camera’s focal length and at about 28mm it seemed to match with the viewport. Can you check if this works for you?
I’m not sure what this all means. It seems like the viewport & camera focal lengths work differently somehow? because before I changed anything you had 50mm in both.
Generally, regardless of this issue, I would advise setting up your camera directly, using “lock camera to view”.