Need help with this working balloon script - Script Writing - CHDK Forum  

Need help with this working balloon script

  • 5 Replies
  • 2231 Views
Need help with this working balloon script
« on: 31 / October / 2010, 13:12:19 »
Advertisements
I have this below for SDM and it works perfectly, now I just need to know what to put in there to make it repeat till I shut it off,
Thanks,


rem SDM balloon photo/movie script
@param p number of photos per batch
@default p 3
@param i interval between photos (secs)
@default i 60
@param m length of movie (secs)
@default m 60

sync_off
while 1
   for i = 1 to p
      sleep_for_seconds i
      shoot
   next i
   sleep 500
   shoot_movie_for m
wend

*

Offline zeno

  • *****
  • 889
Re: Need help with this working balloon script
« Reply #1 on: 31 / October / 2010, 13:15:24 »
Nothing. Once started (by pressing the shutter button in 'Alt' mode), it will repeat until either the battery runs out, the card fills up or you press the shutter button again.
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

Re: Need help with this working balloon script
« Reply #2 on: 31 / October / 2010, 13:35:13 »
Just did another test and after the script runs it's course, it seems to stop.

It does the pics, changes to video, does that, back to manual mode and stops

Re: Need help with this working balloon script
« Reply #3 on: 31 / October / 2010, 15:21:41 »
Turning the flash off corrected this....


Re: Need help with this working balloon script
« Reply #4 on: 31 / October / 2010, 15:22:50 »
It ran longer this time but then just stopped, darn!

*

Offline zeno

  • *****
  • 889
Re: Need help with this working balloon script
« Reply #5 on: 31 / October / 2010, 19:39:08 »
Actually, there's a bug in your script - you're using the variable i as a parameter AND as a loop control variable. Try this:
Code: [Select]
rem SDM balloon photo/movie script
@param p number of photos per batch
@default p 3
@param i interval between photos (secs)
@default i 60
@param m length of movie (secs)
@default m 60

sync_off
while 1
   for j = 1 to p
      shoot
      sleep_for_seconds i
   next j
   shoot_movie_for m
   sleep 500
wend
end
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

 

Related Topics