Wikia

CHDK Wiki

Lua/Scripts:Standard/Lualib/Propcase

Talk0
573pages on
this wiki

< Lua

Revision as of 07:06, February 27, 2012 by Fe50 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

CHDK/LUALIB/propcase.luaEdit

This is a standard lua module included in the full CHDK distribution. It provides camera independent access to PropertyCase numbers using the same mnemonic names used in the CHDK source (without the PROPCASE_ prefix).

Using the moduleEdit

The module returns a table of PropertyCase numbers appropriate to the cameras propset, indexed by name. This module does not set any global variables. Instead, you must assign the return value of require to a variable through which you will access the modules members.

props=require("propcase")
mytv=get_prop(props.TV)

DependenciesEdit

Around Wikia's network

Random Wiki