It says the parameters can only have the names a though j. Now you can use the whole lowercase alphabet. In addition, you can use the uppercase alphabet for variables within a script, though you can't bring them out to the menus to be changed before the script is run. They're strictly internal.
The docs say that the get_xxxx commands are used like this: get_focus f where f is a variable I made up to hold the value of the focus distance in mm. set_focus and the other set_xxxx commands work that way, but the get_xxxx commands are turned around: f = get_focus will store the focus distance in f. You can also use the get_xxxx functions as variables in an equation: f = get_focus + 10
Some of the commands are obsolete. My first script crashed over get_tv, which is supposed to get me the current time-value (shutter speed) in the camera. It's been replaced with get_tv96, which does the same, except that it divides each doubling or halving of the shutter speed into 96 tiny steps.
Just this month, parameters got a new parameter of their own: @range. It allows you to limit the number values that the user can input for any variable.
The docs are so far behind because CHDK is a labor of love by people who love to hack. Every now and then, somebody stands back and tries to assemble all the information about CHDK or scripting into an organized, useable reference, and by the time he or she is done, the hackers have jumped ahead again.
So it takes some reading and researching to catch up, but that doesn't make it any less satisfying when your script makes your camera do stuff that no other camera in the world does. Enjoy.
Yesterday I started expanding & correcting a few of the commands it links to. I hope I did OK.
One addition I would make to the cross-reference page is a note encouraging people to use their browser's Find function (Control-F in most browsers). It makes my life so much easier, searching long web pages of any kind!
Can/should the cross-reference be expanded to include the program flow commands - all the conditionals, gosubs, and stuff like that, or is it intended only as a camera-controls reference?
Started by databoy
Creative Uses of CHDK
Started by Barney Fife
Started by StevenD
RAW Shooting and Processing
Started by ignacioguerra
DSLR Hack development
Started by nosebleed
« 1 2 »