Will this ever be added to the trunk?
@title shootrem Lets suppose shoot_half is pressed all the time. rem (camera uses autofocus only one time)rem Will the camera skip the autofocus processrem if shoot_full is clicked / pressed?rem Yes.rem Glitch: click "shoot_full" and rem press/release "shoot_full" will releaserem the shoot_half button also. (unintuitive)rem Problem: if "shoot_half" is released afterrem taking the first picture, the camera will rem have to refocus when taking second picturerem (refocus using either shoot_half or shoot_full).rem Conclusion: when I take the many picturesrem => no skipping autofocus for the secondrem and later pictures possible.rem Solution: set_aflock (see next script).rem The script: print "shoot_half will be pressed in 5sec." sleep 5000 press "shoot_half"rem The camera catches focus. sleep 5000 print "shoot_full will be pressed in 5 sec." sleep 5000 press "shoot_full" sleep 5000 release "shoot_full"rem shoot_half button released also. (unintuitive) print "shoot_full will be pressed in 5 sec." sleep 5000rem Camera catches focus again as shoot_half was alreadyrem (unintentionally) released earlier (unintuitive) click "shoot_full" sleep 5000 rem release shoot_half does nothing as shoot_half was alreadyrem released earlier by 'release "shoot_full"' release shoot_halfend
@title shoot - aflockrem I can take multiple pictures without refocusingrem using shoot_half, set_aflock and shoot_full. print "shoot_half will be pressed in 5sec." sleep 5000 press "shoot_half"rem The camera catches focus. sleep 3000 release "shoot_half"rem Lock the focus.print "---Locking the focus.---" set_aflock 1 print "shoot_full will be pressed in 5 sec." sleep 5000 press "shoot_full"rem shoot_full skips the autofocusing processrem because of set_aflock. (success) sleep 5000 release "shoot_full" print "shoot_full will be pressed in 5 sec." sleep 5000 click "shoot_full" sleep 5000print "---Unlocking the focus.--" set_aflock 0 print "shoot_full will be pressed in 5 sec." sleep 5000 click "shoot_full"rem shoot_full uses autofocusing again, as AutoFocus lock rem is disabled. sleep 5000 end
Very nice!So what's the official lua script to test this?
--[[@title Interval shooting@param a Shoot count@default a 5@param b Interval (Minutes)@default b 0@param c Interval (Seconds)@default c 3--]]set_console_layout(10, 0, 40, 14)t=b*60000+c*1000if a<2 then a=10 endif t<1000 then t=1000 endsleep(2000)k = get_tick_count()print("Shoot 1 of", a)shoot()for n=2,a do sleep(t) print("Shoot", n, "of", a) shoot()endl = get_tick_count() - ksleep(2000)m = get_tick_count()print("Shoot 1 of", a)click("shoot_full_only")press("shoot_half")for n=2,a do sleep(t) print("Shoot", n, "of", a) click("shoot_full_only")endrelease("shoot_half")n = get_tick_count() - mprint("interval", t * (a-1), "ms") print("shoot", l, "ms")print("shoot only", n, "ms")
Now what I'm looking for is, a short lua script that can:1. Focus2. Lock focus3. Allow some time for composition4. Shoot (without refocusing)
--[[@title Focus Lock@param a = delay (sec)@default a 10--]]sleep(1000)press("shoot_half") repeat sleep(50) until get_shooting() == true release("shoot_half") repeat sleep(50) until get_shooting() == false set_aflock(1)sleep(a*1000)shoot()set_aflock(0)
I noticed the cam turns the af-assist-beam led twice before locking focus.