Hello,
I'm working on a time lapse script. Basically, I want it to first focus, then take a number of shots every second, release focus, and repeat. I want to do the focus thing every few shots, to make sure focus/shutter speed/white balance/... is corrected every time, and it doesn't drift or gets too dark when it gets dark outside.
Only difference to a normal time lapse is that I want to control the shots externally.
Sometimes the interval will change, and this depends on gps and other data. So it's not something that I can include in the script. Thus it needs external control.
Right now, I wrote a script that checks the pulse duration on the USB port, and acts accordingly.
But for some reason I can't make the camera to shoot quick enough to get 1fps. If I do it manually (holding half way, and clicking away at 1fps), the camera does it without a problem. But in script, it seems like it take longer.
Are there some things i have to enable or disable to make it work faster? I already tried changing the yield settings. But this didn't really help. It did however change the output of the USB pulse function.
This is what I have right now. It still needs other functions and fail safes, but I want to get it working first.
@title Time Lapse Controller
print_screen 100*(get_time 2) + get_time 1
print "Perform setup"
set_quality 1
print "Quality 1"
set_resolution 1
print "Resolution 1"
if get_capture_mode = 0 then
print "Switch to record mode"
set_record 1
while get_capture_mode = 0
sleep 100
wend
print "Record mode"
endif
set_yield 10 1
sleep 20
print "Script speed-up"
print "Script started"
a=0
while 1
while a=0
a = get_usb_power 0 until
wend
print a
rem 1 to 3: 10 to 50ms
rem 5 to 7: 80 to 120ms
rem 9 to 11: 170 to 210ms
rem 13 to 15: 250 to 290ms
select a
case 1 to 3; gosub "focus_hold_shoot"
case 13 to 15; gosub "focus_hold"
case 5 to 7; gosub "quick_shoot"
case 9 to 11; gosub "quick_shoot_release"
end_select
a=0
wend
:focus_hold_shoot
print "focus_hold_shoot"
press "shoot_half"
sleep 50
click "shoot_full_only"
return
:focus_hold
print "focus_hold"
press "shoot_half"
return
:quick_shoot
print "quick_shoot"
click "shoot_full_only"
return
:quick_shoot_release
print "quick_shoot_release"
click "shoot_full_only"
release "shoot_half"
return
Any help would be appreciated!
Thanks!