May i ask what's this for?. To get everything in the shot focuseD/?
The initial script info seems to have been deleted, possibly during one of the server updates. Here is the original info:
MF-DOF: Manual Focus DOF bracketing/stacking script
(Originally designed and tested on SX20 - script has 'rem' statements indicating SX20 specific statements)
During macro photography it is common to come across objects/subjects that require DOF bracketing/stacking to capture the detail of the object. I have used several DOF scripts but it was sometimes "challenging" to set the parameters and capture the details of more difficult objects. The only DOF scripts I found relied on the camera to set the initial focus point. I wanted more control, so I wrote this script to allow selecting the focus range visually using the magnified focus view of Manual Focus (MF) mode. I find this handy when focusing from the back to the front of an object. As you focus in and out on an object, this script will keep track of the "selected" range of focus for DOF bracketing/stacking.
Parameters
- Step size. This parameter allows you to increase the change in focus so that you can make changes quicker when manually focusing (MF) during Super macro, Macro, or normal modes. The camera can actually vary the focus much finer that your eyes can detect. (if set to less than 1, then it is changed to 1)
- #Photos. This parameter allows you to choose the number of photos to make for the DOF bracketing/stacking series. (If set less than 1, then it is changed to 1)
- Save log (0=No). Allows saving of DOF Bracket/Stack focus values in a log - anything other than 0 saves a log.
What should you use for a "Step size" value?
For very close macro work like the SX20 is capable of achieving (meaning that the object is only 1 or 2 centimeters away from the front of the lens) a lower "Step size" typically might be about 2 or 3. For something from a few feet and beyond the "Step size" might be higher such as 7 or 8.
How do I set the "Focus" range for the DOF bracketing/stacking?
The focus points can be adjusted in or out using the Zoom-In, Zoom-Out, Left and Right buttons. The Zoom-In and Zoom-Out buttons allow "rough" adjustments (using "Step size") and the Left and Right buttons allow you to "fine" tune the focus points (uses half of the "Step size"). First you select the near-point focus, then press the Set button. The script then resets the focus back to the start focus and then you do the same for the far-point focus. When you have finished fine tuning the point, press the Set button and the script will then shoot the DOF bracketing/stacking series of photos. As the shots are taken, the amount of offset from the initial "Start" focus is displayed both as "+" or "-" in millimeters & percent.
How many photos should I use for DOF bracketing/stacking?
For focus bracketing/stacking in macro photography, it is usually recommended to use 5 or more photos to get the best results using programs like CombineZM or Zerene Stacker.
Save the DOF Bracket/Stack focus values in a log
This option can be enabled by setting the "Save log (0=No)" parameter to anything other than 0. The logging process of the script starts after you have set the near and far focus points for the stack and press "Set". The script then creates a log in the CHDK/LOGS folder. In order to capture multiple logs, the hour and minute are used as part of the file name. For example, if the log is created at 10:32 the filename would be "LOG_1032.TXT". The script overwrites any log with the same name. The previous log will not be overwritten until the final "Set" button, so if you can press the shutter button to exit the script so that the previous log won't be deleted. A sample log looks like this (LOG_0857.TXT):
Date: 5/31/2011
Time: 8:57:52
Hyperfocal_dist: 1579
DOF Sharpness: 1737
Start focus: 569
Near/Far Limits: 578-2157
Est Subj Dist: 649 mm (25.5 in)
Tweaked Range: 389-909
Max #shots possible: 521
Taking 6 photos
Photo: 1 of 6
Focus: 389 (-180 -31.63%)
Photo: 2 of 6
Focus: 493 (-76 -13.35%)
Photo: 3 of 6
Focus: 597 (+28 +4.92%)
Photo: 4 of 6
Focus: 701 (+132 +23.19%)
Photo: 5 of 6
Focus: 805 (+236 +41.47%)
Photo: 6 of 6
Focus: 909 (+340 +59.75%)
*** FINISHED ***
Subject distance
This calculation is based upon the near and far focusing distances of the "selected" range and is only provided during logging.
Basic instructions for MF-DOF bracketing/stacking
1 Set Continuous Shooting mode “off”; Review “off”; Flash “off”; MF-Point Zoom "on"; Safety MF "off"
2 Start with the AF-Point Zoom “on” to accurately set the mid-point of focus photos
3 Set script parameters
4 Select Manual Focus Mode (MF), press half shutter to set intial focus
5 Start script, press Zoom-In/Zoom-Out to start stepping the manual focus. Use /Left/Right buttons to fine tune the focus points
6 Press "Set" to start DOF bracketing portion of script
7 After the series is complete be sure to press MF to exit the MF mode.
Tips:
- Install any special purpose lens accessories needed such as close-up lenses, DCR-250, macro focusing rail, etc. before starting this script
- If you only want a quick 3-shot DOF bracket series, there is a built in option for that on the normal Canon SX20 menu.
- For step 4. Position the camera (and zoom if not in super-macro) so the mid-focus point is mid-way on the MF range scale, otherwise you may not be able to defocus one of the end points for the DOF range that you want.
- For step 5. In order to make this step easier you can actually pan/rotate the camera on the tripod to view specific areas
of interest and aid in the focus process - just be sure to re-position the camera for the image before taking the photos.
- This script uses wait_click statements. Some cameras require that a timeout be specified. If this script fails to run correctly in your camera, try changing the "wait_click" statements to "wait_click 5000" (5 secs).
Place "MF-DOF.bas" in Scripts folder.