5.5 CHDK commands 117
get_user_av_id x uBasic
x = get_user_av_id() Lua
set_user_av_by_id x uBasic
set_user_av_by_id(x) Lua
Retrieves and sets the index of the aperture index set by the user (3 units per f-stop).
get_user_av96 x uBasic
x = get_user_av96() Lua
set_user_av96 x uBasic
set_user_av96(x) Lua
Retrieves and sets the internal value of the aperture set by the user (96 units per
f-stop).
set_av_rel x uBasic
set_av_rel(x) Lua
Modifies the real aperture relative to the current aperture. A negative x makes the
aperture wider, a positive x makes it smaller (3 units per f-stop).
set_user_av_by_id_rel x uBasic
set_user_av_by_id_rel(x) Lua
Modifies the aperture set by the user (3 units per f-stop).
set_nd_filter f uBasic
set_nd_filter(f) Lua
Sets the neutral density filter: 0 = off, 1 = in, 2 = out. This command has no effect on
cameras without an ND filter.
Index Av96 Aperture
9 288 f/2.8
10 320 f/3.2
11 352 f/3.5
12 384 f/4.0
13 416 f/4.5
14 448 f/5.0
15 480 f/5.6
16 512 f/6.3
17 544 f/7.1
18 576 f/8.0
Table 5-2
Apertur e index vs. aperture