Zoom-Related Commands - Canon Camera Hackers Manual

Camera hackers manual berthold daum
Table of Contents

Advertisement

120
C H A P T E R 5
Scripting
get_dof x
x = get_dof
x = get_dof()
Returns the Depth of Field ( DOF) in millimeters.
get_far_limit d
d = get_far_limit
d = get_far_limit()
get_near_limit d
d = get_near_limit
d = get_near_limit()
Sets the far and near limit (in millimeters) of the distance range with acceptable
sharpness. The value of –1 resp. 65535 indicates an infinite distance, but also a
distance outside the current camera setting ( macro, normal).
get_hyp_dist d
d = get_hyp_dist
d = get_hyp_dist()
Returns the hyperfocal distance in millimeters. The hyperfocal distance is the closest
distance to which the lens can be focused while keeping objects at infinity sharp. All
objects within the range of half of the hyperfocal distance and infinity will be sharp.
set_aflock a
set_aflock(a)
Sets autofocus lock: 0 = off, 1 = on. Especially useful for time series where refocusing
is not desired. When the AF lock is set, the AF LED is switched off, too.

5.5.4 Zoom-related commands

s = get_zoom_steps
s = get_zoom_steps()
Returns the maximum number of zoom steps. This may differ among camera models.
get_zoom z
z = get_zoom
z = get_zoom()
set_zoom z
set_zoom(z)
Retrieves and sets the current zoom step.
Note: It is recommended to set the zoom speed explicitly with command set_zoom_
speed (see below) before using the set_zoom command. Improper use of the set_zoom
command can later result in the message "assert failed—game over!" and an imme-
diate camera shutdown.
A safer method to change zoom levels is to apply simulated clicks to the zoom_in and
zoom_out buttons (section 5.5.1).
uBasic
uBasic
Lua
uBasic
uBasic
Lua
uBasic
uBasic
Lua
uBasic
uBasic
Lua
uBasic
Lua
uBasic
Lua
uBasic
uBasic
Lua
uBasic
Lua

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Powershot sx10 is

Table of Contents