Camera Fit View Add-on

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
Camera-Assign

15 Likes

Camera from view = Awesome! One handy thing from Good o’Maya Days. Thank you so much!!!

3 Likes

Hi @Yashar,

Great idea! Simple, elegant and very handy. Just tried it in Blender 2.83.5 and it works like a charm!

Cheers and stay safe!

2 Likes

:rose: :rose: :rose: :raised_hands:

1 Like

Glad you Liked it :raised_hands: :rose:

1 Like

thank you… very useful.

2 Likes

The good thing. Thanks

1 Like

I am coming from 3ds max, and I am so happy for this. Cheers. Thanks.

1 Like

I missed it from my old friend, 3dsmax, too! :laughing: :raised_hands:

thank you

most useful add-on

1 Like

Thanks :raised_hands: :rose: :rose:

Very cool!

1 Like

Thank you :raised_hands: :raised_hands: :rose: