Oops. It figures.
I have SDM loaded on another SD card, but since I only have one camera I shoot stereos manually, if at all. I keep plain vanilla CHDK loaded. I'm constantly amazed by its power, with and without scripting. A line from Douglas Adams keeps going through my head: when he's describing the Restaurant at the End of the Universe, he keeps repeating, "This, of course, is impossible." I love it.
I wrote this because I'm intrigued by HDR and DOF stacking and thought it might be fun to combine the two, but CHDK didn't seem to offer that. (In testing I accidentally found that a focus-stacking script works with Canon's native exposure bracketing.) Eventually I remembered that Somebody could write a script to do what I wanted. A few minutes later, I remembered I might be Somebody.
Whether it's useful or not, it was good practice, and I think I wrote good, modular code, with proper use of variable testing, subroutines, for/next and do/until loops, and a clean exit.
I'm frustrated by the outdated documentation, though. I have a printed copy of DanielF's guide from last November, I think, and the get_tv command I relied on from there is already obsolete! I was about to give up until I a found a link on this forum to the new cross-reference page.
Even that summary doesn't agree with how uBASIC scripts work in my camera. The syntax get_tv96 N fails to load the value into N. I rewrote that and all similar calls as N = get_tv96 or equivalent.
Somebody ought to update the documentation. Again, I might be one of those Somebodies, if I find the time.
Thanks for all you've brought to CHDK. I bought my S3 with my eyes wide-open, knowing I was accepting a lot of compromises over what some other cameras offered. CHDK knocks a lot of those compromises off the table.