Well I'm mystified, but that's easy :-)
Here is the point of failure, that generates the traceback error:
local iso_b = camera.iso.apex
local temp = camera.shutter.ms
local stop = MUSIC_menu.submenu["Number of images?"].value
if MUSIC_menu.submenu["Bookends?"].value == "yes" then stop = stop + 2 end
for i = 1,stop do
if (i == 1 or i == stop) and MUSIC_menu.submenu["Bookends?"].value == "yes" then -- tweak shutter and ISO for first and last images in bracket set
camera.shutter.ms = 1
camera.iso.apex = 10 --FAILS HERE!!!!!!!!
else
camera.iso.apex = iso_b
camera.shutter.ms = temp
end
my_shoot()
msleep(MUSIC_menu.submenu["I2I Delay"].value * 1000)
if MUSIC_menu.submenu["Focus shift mode"].value ~= "None" then
check_lens_ready() -- just in case
lens.focus(dir,step,true) -- move lens
check_lens_ready() -- just in case
lens.focus(-dir,step,true) -- move back
end
end
camera.shutter.ms = temp
camera.iso.apex = iso_b
display.notify_box("Script Finished Running", 3000)
else -- something is wrong
display.notify_box("Switch on LV", 3000)
end