Modo Scripts
mm_FOV
Posted by on Thursday, September 20, 2007 (GST)
 
Requirements: These scripts require access to python librarries that are not shipped by default with Modo. In Windows it is advisable to install  a full distribution of Python 2.4.3 such as the one from ActiveState
 
Download: mm_FOV.zip
 
Zip contains 1 files:
mm_FOV.py - goes in user scripts directory
 
 
Usage:
 
Select a camera in the item list. Run the script (either from a hotkey or using F6). The script calculates the Horizontal and vertical FOV values in degrees from the cameras current settings and pops up a dialog. The values are also written to the event log.
 
 
 
Any comments or suggestions etc, add a coment to this article.
 
 
 
 
Comments:

Mac error
By ChrisC on Monday, February 11, 2008 (GST)
Hi Gwynne - I liked the look of this script as I've been having trouble aligning cameras from imported fbx scenes, however it returns, 

Error evaluating script:  RuntimeError, line 20; query failed.

Line 20 is:

filmHeight = lx.eval('item.channel apertureY ?')

I'm guessing this is relating to a missing Python library; I'm on a Mac however and thought Python was available by default. Is there an installation I'm missing?

Thanks by the way! Chris
Mac error
By ChrisC on Sunday, February 24, 2008 (GST)
It turns out that this is user error, not Mac error. But thanks again for this, sure to be useful.

C