Jump to content

Viewport FOV


galagast

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.

Link to comment
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. :)

Link to comment
Share on other sites

  • 3 years later...
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
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...