EasyManua.ls Logo

Canon Camera - Page 138

Canon Camera
257 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5.6 Property Cases 129
A more elegant solution to this problem exists for the most important
property cases under Lua. Your CHDK installation should already contain a
library propcase.lua in folder /CHDK/LUALIB. This library maps symbolic
names to property IDs and thus abstracts from the underlying operating
system. The above query can be reformulated as:
props = require "propcase"
s = get_prop(props.SHOOTING)
You will find that many property cases shown in the table below are, in
fact, covered by commands listed in section 5.5, so it’s rarely necessary to
access properties directly. The query shown above can be expressed more
simply as:
s = get_shooting rem uBasic
s = get_shooting() -- Lua
Not all of the property IDs and their values have been decoded yet—this is
an ongoing community effort. In addition, not all findings have been veri-
fied for all camera types. So, the following table must be treated with some
caution.
Vx Works DryOS Lua Description
0
236
SHOOTING_MODE Shooting mode dial position
18 = video (11)
49
50
SHOOTING_MODE Shooting mode dial position
We list here only the most common shooting modes. A complete list of
shooting modes is found in library modelist.lua in folder CHDK/LUALIB/.
Some of the Canon shooting mode numbers (in front of the equality sign) dif-
fer from camera to camera. The latest findings are listed on http://chdk.wikia.
com/wiki/Mode_dial_propcase_values.
The values in parenthesis are the CHDK shooting mode numbers.
–32768 = AUTO (1)
–32764 = P (2)
–32765 = Tv (3)
–32766 = Av (4)
–32767 = M (5)
–32755 = PORTRAIT (6)
–32757 = NIGHT (7)
–32756 = LANDSCAPE (8)
2597 = VIDEO_STD (640/30fps) (9)
2598 = VIDEO_SPEED (320/60fps ) (10)
2599 = VIDEO_COMPACT (160/15fps) (11)
–32246 = Stitch Assist
–32248 = Digital Macro

Table of Contents

Related product manuals