Closed pootle closed 2 years ago
I have no idea how to set the focus on your camera. If your experiments have found a way that works then you already know more than I do. This page is for reporting bugs in the python interface. Questions about how to use libgphoto2 should be sent to one of the gphoto2 mailing lists.
Ah! righto thanks
One possibility: try calling fchangewidg.set_changed
instead of changing the value back to None
. I guess this tells libgphoto2 that the widget value has changed (even though it hasn't) so the value gets sent to the camera again when you call set_config
.
I'm writing a program to adjust focus for focus stacking, with my camera the valid values of 'manualfocusdrive' are ['Near 1', 'Near 2', 'Near 3', 'None', 'Far 1', 'Far 2', 'Far 3']
But if I change setting (say) 'Far 2' several times, then only the first takes effect
It seems you have to alternate 'Far 2' with 'None' for subsequent settings to take effect. Is this the proper way to rack the focus by multiple steps?
Watching the lens' focus while running this, the focus shifts only once in the first set of tests, but every change shifts focus on the second set of tests. I'm running the standard distro version (Fedora 34) 2.0.0, and I get the same result running on a Raspberry Pi which is more up to date:
Here is the tests program