MoI discussion forum
MoI discussion forum

Full Version: Custom Focal length and switch script

Show messages: All  1  2-3

From: Michael Gibson
15 Dec 2019   [#2] In reply to [#1]
Hi angonyii, try this script on a shortcut key:

script: /* Toggle field of view */ var other_angle = 40.0; var v = moi.ui.mainWindow.viewpanel.getViewport('3d'); if ( v.projection == 'Perspective' ) { if ( v.fieldOfViewAngle == other_angle ) { v.fieldOfViewAngle = 27.5; } else { v.fieldOfViewAngle = other_angle; } }

Yes, the default angle matches to a 50mm focal length for a 35mm camera.

- Michael
From: agonyii
18 Dec 2019   [#3] In reply to [#2]
Works great! I hope it would be useful to others as well. Thanks so much Michael!

Show messages: All  1  2-3