Hi
I have created a simple add-on which adds two new options to Cameras menu:
- Fit Camera to view
- Create Camera From View
The “Fit Camera to View” will fit and match selected camera to view.
If no camera is selected the active camera of scene will be matched to view.
The “Create Camera from View”
creates a camera and fits that exactly to viewport.
The default align to view operation does not account for lens properties and the camera is not matched to viewport.
In both options the camera POV and properties are matched to view
Properties: Lens Focal Length, Sensor Size, Clipping.
I personally add shortcut for myself but didn’t include that in addon.
User can set custom shortcuts for themselves.
Mine is:
Ctrl + ~ > Fit Camera to View
Ctrl + Shift + ~ > Create Camera from View
camera_fit_view.py (2.2 KB)
In the Youtube link I’ve demonstrated the default method, the problem, the solution and the add-on.
https://www.youtube.com/watch?v=CQMbnnzxToc
Hope it will be useful…
P.S.
Right click on menu items to assign shortcuts