Greetings to all!To begin, I want to ask you testing the subtleties of the focus of your cameras (especially sx50 owners and similar), using my script
CheckSD.luaThe script creates a file
checkSD.cvs (checkSD01.cvs, etc.), which I'd like to post here.
Initial conditions: Zoom=min; Dof Calculator: Canon Subj. Dist. as Near Limit = Off, Use EXIF Subj. Dist. (PC65) = Off.
--[[
@title Check subject distance
@param a autonumber filename (y/n)
@range a 0 1
@default a 1
--]]
autonumber = (a==1)
if autonumber then
local nameBegin = 'A/checkSD'
for i=0,99 do
local fn = string.format('%s%02d.csv',nameBegin,i)
if not os.stat(fn) then
filename = fn
break
end
end
if not filename then
error('No available filenames!')
end
else
filename = 'A/checkSD.cvs'
end
bi=get_buildinfo()
log,err=io.open(filename,"wb")
--sleep(100)
if not log then
error('failed to open '..tostring(filename)..': ' .. tostring(err))
end
log:write(bi.platform, "\n", os.date(), "\n\n")
log:write("Write SD: Canon SD:\n\n")
set_mf(1)
SD_in = 0
SD_out = 0
maxSD = 25000
-- max value to achieve infinity
-- for SX50 (zoom = min) enough 15000
for i = 1, maxSD, 1 do
set_focus(i)
--sleep(100)
tmp = get_focus()
if tmp ~= SD_out then
SD_in = i
SD_out = tmp
log:write(string.format("%8d", SD_in)," ; ", string.format("%8d", SD_out),"\n")
cls()
print("Currend SD: "..i)
if tmp == -1 then
break
end
end
end
log:close()
set_mf(0)
P.S. The script is running long enough, please do not be afraid.
Thanks in advance.