5.5 CHDK commands
119
ISO Index
Sv96
ISO mode
5
768
800
6
864
1600
7
960
3200
8
1056
6400
Light values ( Bv, Ev)
get_bv96 x
uBasic
x = get_bv96()
Lua
Retrieves the scene brightness
(Bv)
with 96 units per stop.
get_ev x
uBasic
x = get_ev()
Lua
set_ev x
uBasic
set_ev(x)
Lua
Gets and sets the exposure value (
Ev
) with 96 units per stop.
5.5.3
Focus-related
commands
These commands allow reading focus-related values such as subject dis-
tance, depth of field, and so on. They also allow setting the subject distance
to a fixed value and then locking the autofocus system. On cameras with
an explicit manual focus mode, the camera must be switched manually to
that mode before the focus can be set via a script command. On cameras
without an explicit manual focus mode, no action is required.
get_focus_mode x
uBasic
x = get_focus_mode
uBasic
x = get_focus_mode()
Lua
Returns the focus mode: 0 = auto, 1 = manual.
get_focus d
uBasic
d = get_focus
uBasic
d = get_focus()
Lua
set_focus d
uBasic
set_focus(d)
Lua
Retrieves and sets the focus distance in millimeters. The value of –1 resp. 65535 indi-
cates an infinite distance.
Table 5-3
Continued
Содержание Camera
Страница 1: ......
Страница 2: ...The Canon Camera Hackers Manual ...
Страница 3: ......
Страница 4: ...Berthold Daum The Canon Camera Hackers Manual Teach Your Camera New Tricks ...
Страница 19: ...10 CH APTER 2 Cameras and Operating Systems ...
Страница 25: ...16 CH APTER 3 ...
Страница 85: ...76 CH APTER 4 Teach Your Camera New Tricks ...
Страница 213: ...204 CH APTER 6 ...
Страница 253: ...244 AP PENDIX ...