Modo Scripts
(401) Image file utilities
Posted by on Sunday, June 21, 2009 (GST)
mm_ImagefileOps v1.01
 
 
Last Update: 21/06/09
 
What is it?
 
Set of 4 utilities fro working with images in the clips list.  
  • Open Clip - opens image in the system default viewer
  • Locate Clip - opens clip's containing folder in Finder or Explorer
  • Open Clip With - opens clip in the application defined in the settings file (see below)
  • Display EXIF data - displays clip's EXIF data (if present) in a pop up window
 
Installation:
 
Choose 'Run Script' from the 'System' menu (Shift-F5)
 
 
 
Navigate to where you've unzipped the zip file and double click on 'install.py'
 
 
 
In the next dialog, you need to navigate back to the same directory so that the install script can find the files it needs to install.
 
 
 
If the install is successfull, a dialog should pop up.
 
 
 
Restart modo.
 
 
Setup:
 
This script creates a settings file in your user scripts directory called 'mm_ImageFileOpsData.ini'. It contains a section to define the application you wish to use for the 'Open Clip With ...' command and values for the diagonal dimension of the sensor in various digital cameras. This value is used by the EXIF command to calculate the 35mm focal length equivalence of the lens used to shoot the image.
 
'Open Clip With ...' application path - open the 'mm_ImageFileOpsData.ini' in a text editor. depending upon your platform you should find this file in the following locations:
 
OSX: /Users/YourUserName/Library/Application Support/Luxology/Scripts
 
Windows XP: C:\Documents and Settings\YourUserName\Application Data\Luxology\Scripts
Windows Vista: C:\Users\YourUserName\AppData\Roaming\Luxology\Scripts
 
The file should look something like this
 
 
At the top, where it says 'path =' enter the path to the application you would like to open the clip with. For example, if you wish to open the clips using Photoshop in Windows the line might look like this:
 
path = C:\Program Files\Adobe\Adobe Photoshop CS3\Photoshop.exe
 
 
Camera settings - As you can see from the image above, under the '[cameras]' section is a list of different digital camera models. The value after the equals sign on each line is the diagonal size of the camera's image sensor. It is used to calculate the 35mm equivalence of the lens. If your camera is not listed, or is unknown when you run the EXIF command on a clip with EXIF data in modo you will see the following under the '35mm Equivalent' entry in the pop up EXIF information Window - 'Unknown: name of camera' where 'name of camera' is the camera's name string as reported in the EXIF data. To add your camera to the list, open the settings file in a text editor and add the name of your camera as printed in the pop-up window to the end of the list of cameras along with the diagonal size of it's sensor - you can find the width and height of the sensor from the camera's specification onformation in it's manual.
 
 
 
 
 
Usage:
 
Right click on a clip in the clips list and you will find the new command available at the bottom of the menu.
 
 
 
Enjoy :)