Author Topic: Lua strangeness  (Read 1233 times)

garry23

  • Contributor
  • Hero Member
  • *****
  • Posts: 1736
Lua strangeness
« on: December 18, 2016, 09:21:04 AM »
@A1ex

I thought your half shutter trick was working, but after testing I'm getting strange behaviours in my script.

I put the half shutter 'tweak' here:

Code: [Select]
function my_shoot() -- to grab an image
camera.shoot(false)
key.press(KEY.HALFSHUTTER)
    msleep(100)
key.press(KEY.UNPRESS_HALFSHUTTER)
end

If I don't have the tweak in my script AND I have Canon review off, all seems to be OK.

If I add the above half shutter trick, as above, the image flashes on and off and, more importantly seems to terminate the script prematurely, but with no error messages.

For now, I will therefore use the script with the Canon review off and not use the trick :-)