Another quirk: with Sigma lens variables at 0x00244916/0x00244918 are updated regularly at playback mode but not in rec mode.
For example, when I attach my Sigma 12-24 the lens seems to go into spasm, ie before I use my script.I'll look into this when I get a chance.
Can you move the focus of your Sigma when the switch is on MF?
Here someone wrote that it doesn't work with the Sigma.
https://forum.chdk-treff.de/viewtopic.php?f=23&t=3665With my Canon lenses, the focus can be moved in MF and AF.
The problem is that the ‘Stack’ mode does not work with the “M3M10M100_Focus.lua” script when the lens is on AF. I use the shoot () command for ‘Stack’. If the lens is set to AF, an auto focus is carried out with every picture. So the script doesn't work with the Sigma.
I have therefore made the following changes to ‘Stack’:
A check, if AF is on.
local Disable_AF = false
if get_focus_mode() == 0 then
print("Focus Mode is Auto ", get_focus_mode())
Disable_AF = true
else
Disable_AF = false
end
and disabling AF while using shoot.
if Disable_AF then
set_mf(1)
shoot()
set_mf(0)
else
shoot()
end
With these changes, the script also works with Sigma lenses in AF mode. I updated the script in the first post.