Thanks WW. It's nice to get a such a quick & helpful response.
I think you helped me years ago when I managed to get something working on a camera whose lens I've broken off, but I've forgotten anyway.
(Hence non-zero post count!)
I have misunderstood how this script is meant to work.
Yes I have the basic scripts running OK. It was much easier than last time, using the installation wizard.
Basically I just want to set focus to "close" going to "far", the same as everyone else, but using calculated DOF steps instead of fixed measurements.
Simple and working is all I want at the moment.
Ends can be set as parameters in mm.
I understand I may have to experiment to determine the effective minimum focus number to use.
I can calculate the DOF if necessary.
I expect the lens will be sharpest about wide open, because of diffraction. (I do a lot of stacking, bugs etc, with bigger cameras.)
If there would be out-of focus bands then I could switch to a smaller aperture, but that and other refinements can come later.
Rgds
Chris