I will try the glue script as you suggest. This seems like a neat way to do it. I like the options in your script.
This is diverging off-topic, but one of the reasons I want to use the CHDKptp is so that I can set the focus, take a picture, then set the focus at a slightly different point, and take another picture... and see where the focus is sharpest. But I am getting confused by all the different units.
Is there a way to interrogate the camera to determine what the focus point is set to? Then I can focus at infinity or set it to scene mode, and see what value it reports. I'd use that as a starting value and bracket around it.
I've found that 'luar set_focus(-1)' does not result in consistently focused images. But I am not sure how the camera knows to translate '-1' to "infinity". It seems to me to be more robust to set_focus(xxxx), but first I need to determine what value of xxxx corresponds to true focus at infinity. (I'm also making another assumption here, that the lens is generally capable of going beyond infinity. It must be able to for optical focus of a distant subject to be able to work. So I am not sure what "set the focus to infinity" means, unless the camera is somehow taught at what point the lens should be set.)
Ok, thanks again for the speedy reply!