Jump to content
galagast

Viewport FOV

Recommended Posts

I can't seem to find the controls to adjust viewport Focal Length/Aperture/FOV.

Although if I drop a Camera Object, I could set the values from there.
Or alternatively, I could manually adjust them by eye using Shift+RMB, with CTRL+RMB combo..

I'm curious where does one adjust those for the vanilla viewport (without creating a camera). I skimmed through the display options and could not find any relevant parameter.

Share this post


Link to post
Share on other sites
Guest tar

You can manually set it in the .hip file with a text editor. search for 'focal'

 

Those keyboard shortcuts are for dollying, not fov.

Share this post


Link to post
Share on other sites
  1. Create camera from current view: "New Camera"  from Camera menu at the corner of viewport.
  2. Adjust camera parameters.
  3. Delete the camera. It should be selected already, just press Delete.

Share this post


Link to post
Share on other sites

@marty: Thanks marty! After looking into your suggestion, I could now use this hscript command to set the focal values:

viewtransform Build.panetab1.world.persp1 (focal) 80

 

6 hours ago, marty said:

Those keyboard shortcuts are for dollying, not fov.

Indeed! (in View Mode)  CTRL+RMB seems to adjust the Screen Window Size of the View/Camera. (Help card says Zoom Camera Lens).
And SHIFT+RMB does Dollying (at a slower rate).

 

@f1480187: Thank you f1, that is also what I was doing. On my post above, I mentioned looking for a way to to adjust FOV without creating a camera. :)

Share this post


Link to post
Share on other sites
Posted (edited)
On 01.12.2016 at 12:25 PM, galagast said:

@marty: Thanks marty! After looking into your suggestion, I could now use this hscript command to set the focal values:


viewtransform Build.panetab1.world.persp1 (focal) 80

 

Indeed! (in View Mode)  CTRL+RMB seems to adjust the Screen Window Size of the View/Camera. (Help card says Zoom Camera Lens).
And SHIFT+RMB does Dollying (at a slower rate).

 

@f1480187: Thank you f1, that is also what I was doing. On my post above, I mentioned looking for a way to to adjust FOV without creating a camera. :)

 

Hello, I found how to use it with Python (print function is with for Pyhon3 H18+). You can use it in a shelf:

 

import soptoolutils
import toolutils

cam = toolutils.sceneViewer().curViewport().defaultCamera()

# set Focal Length +5
cam.setFocalLength(cam.focalLength() + 5)
print(cam.focalLength())

 

Edited by mifth

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×