Getting close on the SD450 1.00d...HELP! - page 3 - General Discussion and Assistance - CHDK Forum

Getting close on the SD450 1.00d...HELP!

  • 21 Replies
  • 8828 Views
Re: Getting close on the SD450 1.00d...HELP!
« Reply #20 on: 18 / May / 2008, 14:29:57 »
Advertisements
This is awesome. The build works great. I've had to modify an intervalometer script to work with it, like you say. I thought I had it working fine, having modified a script like you mentioned, but it's still not actually saving the pictures it takes. Not even as RAW files on the card. No idea what's going on. I'll update if I figure it out.

Code: [Select]
rem Author ~Keoeeit~
rem S-Series cameras ONLY
rem Use Endless mode with caution
rem See documentation for important info
@title OMNI Intervalometer
@param a Photo=0 Vid=1 P&V=2 Burst=3
@default a 0
@param b Delay 1st Shot (Mins)
@default b 0
@param c Delay 1st Shot (Secs)
@default c 0
@param d Number of Shots/Vids/Burst
@default d 5
@param e Interval (Minutes)
@default e 0
@param f Interval (Seconds)
@default f 0
@param g Interval (10th Seconds)
@default g 5
@param h Video/Burst Minutes
@default h 0
@param i Video/Burst Seconds
@default i 0
@param j Endless? No=0 Yes=1
@default j 0
p=b*600+c*10
t=e*600+f*10+g
v=h*600+i*10
if a<0 then a=0
if a>3 then a=3
if d<1 then d=5
if t<1 then t=1
if j<0 then j=0
if j>1 then j=1
if p<0 then p=0
if v<10 then v=10
if a=0 then v=0
u=t
get_user_tv_id k
if a=1 then k=-14
if a=2 then t=t+10*d
if a=3 then t=t+25*d
if k=-12 then t=t+330
if k=-11 then t=t+270
if k=-10 then t=t+210
if k=-9 then t=t+170
if k=-8 then t=t+130
if k=-7 then t=t+110
if k=-6 then t=t+90
if k=-5 then t=t+70
if k=-4 then t=t+60
if k=-3 then t=t+50
if k=-2 then t=t+40
if k=-1 then t=t+35
if k=0 then t=t+18
if k=1 then t=t+15
if k=2 then t=t+13
if k=3 then t=t+11
if k=4 then t=t+10
if k=5 then t=t+8
if k=6 then t=t+6
x=p+(v*d)+(t*(d-1))
print "1 Cycle Time:", x/600; "min", x%600/10; "sec"
goto "interval"
:interval
  if p>0 then gosub "pause"
  for n=1 to d
  print "Shot", n, "of", d
  if n>1 then sleep u*100
  if a=0 then click "shoot_full"
  if a=1 then gosub "vid"
  if a=2 then gosub "vid"
  if a=3 then gosub "burst"
  next n
  if j=1 then goto "interval" else end
:pause
  r=(b*60)+c
  for m=1 to r
  q=r-m
  print "Intvl Begins:", q/60; "min", q%60; "sec"
  sleep 930
  next m
  return
:vid
  if a=2 then click "shoot_full"
  if a=2 then sleep 1000
  click "video"
  sleep v*100
  click "video"
  return
:burst
  click "timer"
  press "shoot_half"
  sleep 500
  press "shoot_full"
  sleep v*100
  release "shoot_full"
  release "shoot_half"
  sleep 2000
  click "timer"
  click "timer"
  return

Credit: UBASIC/Scripts: OMNI Intervalometer - CHDK Wiki


Re: Getting close on the SD450 1.00d...HELP!
« Reply #21 on: 22 / May / 2008, 00:05:58 »
Here is an interval script that I'm using for the sd450:

Code: [Select]
rem Interval shooting

@title Interval shooting
@param a Shoot count
@default a 10
@param b Interval (Minutes)
@default b 0
@param c Interval (Seconds)
@default c 10

t=b*60000+c*1000
if a<2 then let a=10
if t<1000 then let t=1000

print "Total time:", t*a/60000; "min", t*a%60000/1000; "sec"

sleep 1000

print "Shoot 1 of", a
press "shoot_full"
release "shoot_full"
for n=2 to a
    sleep t
    print "Shoot", n, "of", a
press "shoot_full"
    release "shoot_full"
next n

end

I used press "shoot_full" and release "shoot_full", but I think click "shoot_full" would work as well.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal