galagast Posted November 29, 2016 Share Posted November 29, 2016 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. Quote Link to comment Share on other sites More sharing options...
Guest tar Posted December 1, 2016 Share Posted December 1, 2016 You can manually set it in the .hip file with a text editor. search for 'focal' Those keyboard shortcuts are for dollying, not fov. Quote Link to comment Share on other sites More sharing options...
f1480187 Posted December 1, 2016 Share Posted December 1, 2016 Create camera from current view: "New Camera" from Camera menu at the corner of viewport. Adjust camera parameters. Delete the camera. It should be selected already, just press Delete. Quote Link to comment Share on other sites More sharing options...
galagast Posted December 1, 2016 Author Share Posted December 1, 2016 @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. Quote Link to comment Share on other sites More sharing options...
mifth Posted July 29, 2020 Share Posted July 29, 2020 (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 July 29, 2020 by mifth 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.