Wikia

CHDK Wiki

UBASIC/Scripts: Multipurpose Bracketing

Talk4
565pages on
this wiki

< UBASIC

Revision as of 13:15, June 4, 2008 by 195.212.29.83 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Multipurpose Bracketing Edit

Written for/on: Powershot A710 IS
Also works on: Powershot A540

I use this script for taking shots of different exposures for HDR photography. This script can also take shots with varying aperture value or shutter speed.

Documentation/Help (save as a small "m-p-bracketing.txt" file to your /SCRIPTS/ folder)


Before running the script, the setting(exposure, aperture, etc.) that is to be varied must be active(by pressing the erase button if necessary). This script takes a number of shots starting at the current value and increase that value for the next shoot. For example, to take 3 pictures with exposures -1, 0, and +1, set the step size to 3 and number of shots to 3. For the A710, set the script shoot delay to at least 11, other cameras should be different. Press erase button and set the exposure to -1. Then go to alt mode and run the script.


Script Code (save as "m-p-bracketing.bas" to your /SCRIPTS/ folder)

 
@title Multipurpose Bracketing
@param a Step size
@default a 1
@param b Number of shots
@default b 3
 
if a<1 then let a=1
if b<1 then let b=3
 
rem click "erase" (Originally here, but removed because I can't see why it's necessary)
rem click "erase" (same case. What purpose do these statements serve?)
rem update 08/05/06 I think they should be there in order to prepare for the click right/left commands further down.
 
print "Shoot", 1, "of", b
 
shoot
 
for s=2 to b
  for n=1 to a
    click "right"
  next n
 
  print "Shoot", s, "of", b
  shoot
next s
 
let b=b-1
for s=1 to a*b
  click "left"
next s   
 
end
Advertisement | Your ad here

Around Wikia's network

Random Wiki