5.7 Example scripts
163
gosub "fmode"
print "done:",n,"shots"
playsound 3 rem timer sound
wait_click 30000
end
The subroutine
fmode
checks the current flash mode. If it is not the desired
flash mode (passed in transfer variable
M
), it fires the necessary key presses
to advance to the next item in the flash menu (section 5.1):
:fmode
r = get_flash_mode
while r <> M
click "right"
click "right"
click "set"
r = get_flash_mode
wend
return
The subroutine
prep
is used to wait until the camera is ready to shoot—i.e.,
until the command
get_shooting
returns
1
. The subroutine
wait
works the
other way around; it waits until the camera has processed the current shot:
:prep
do
r = get_shooting
until r = 1
return
:wait
do
r = get_shooting
until r = 0
return
A few words are necessary about script usage. First, cameras that support
manual focusing must be switched to manual focusing mode. For other
cameras, no action is required.
If your camera has a diaphragm, you should use an aperture two f-stops
behind the open aperture. This will increase the DOF for each shot and thus
reduce the number of shots that need to be taken. When shooting with a
fully open aperture (and this is always the case for cameras that have only
an ND filter), a large number of images might be necessary to cover the
Summary of Contents for Camera
Page 1: ......
Page 2: ...The Canon Camera Hackers Manual ...
Page 3: ......
Page 4: ...Berthold Daum The Canon Camera Hackers Manual Teach Your Camera New Tricks ...
Page 19: ...10 CH APTER 2 Cameras and Operating Systems ...
Page 25: ...16 CH APTER 3 ...
Page 85: ...76 CH APTER 4 Teach Your Camera New Tricks ...
Page 213: ...204 CH APTER 6 ...
Page 253: ...244 AP PENDIX ...