"shoot" in a script doesn't work on G12. Help please... - Script Writing - CHDK Forum

"shoot" in a script doesn't work on G12. Help please...

  • 5 Replies
  • 1967 Views
"shoot" in a script doesn't work on G12. Help please...
« on: 05 / October / 2013, 19:43:23 »
Advertisements
I have used the simple intervalometer script on my SX200 and it works great!  However, when I take the exact same script and run it on my G12, when the "shoot" command is called, the camera turns off.

Here is the loop:

rem now we've done the first shot
:do_loop
  for n=2 to d
  print "Shot", n, "of", d
  sleep t
  shoot
  next n
end

If I change the script by commenting out "shoot" and putting in a print command, the script works fine.  Here is that version:

rem now we've done the first shot
:do_loop
  for n=2 to d
  print "Shot", n, "of", d
  sleep t
rem shoot
  print "shooting now"
  next n
end

I tried to replace "shoot" with "shoot_full" and the G12 still turns off.

Then I deleted all of the lines in the script except print and shoot and the camera still turns off when shoot is called.  Here is that two line script:

print "shooting now"
shoot

Does anyone know why "shoot" doesn't work on the G12?

I tried to find other posts about this but was not successful...



« Last Edit: 05 / October / 2013, 22:20:18 by marlon »

Re: "shoot" in a script doesn't work on GX12. Help please...
« Reply #1 on: 05 / October / 2013, 20:35:38 »
I guess my first question would be what's a GX12?   Do you mean G12?  Or some other camera?

Having a two line script that simply dies on a shoot command is highly unusual.   What is the full name & extension of the script file you are using?  Are you in "shooting" mode rather than "playback" when you run the script?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: "shoot" in a script doesn't work on G12. Help please...
« Reply #2 on: 05 / October / 2013, 22:37:34 »
Doh!  I didn't notice that I had added the "X".  I meant G12.  (I fixed my original post.)

I am using CHDK 1.86.

My script is named Time_lapse.bas.

I have tried both autostart and manually start for the script.  On autostart,
  • the camera starts up,
    displays a giant 1.86 in blue,
    then says "No Image" (there are no images on my SD card),
    then goes into shooting mode (I assume because the view on the LCD is live and there is a focus point),
    the script displays a few words like Shot 1 of N,
    and then the camera goes to sleep with the lens extended.
I've attached the exact file I am using.

Thoughts?


Re: "shoot" in a script doesn't work on G12. Help please...
« Reply #3 on: 05 / October / 2013, 22:47:16 »
I am using CHDK 1.86.
There is no CHDK 1.86.    Sounds like you are using something called SDM - a program spun off from an early version of CHDK.   I can't help you with SDM - I don't use it and it does not support any of the Canon P&S cameras that I own.

You might try the Yahoo group for SDM :  http://groups.yahoo.com/neo/groups/StereoDataMaker/info

Quote
Thoughts?
If if was me,  I'd switch to using CHDK.  Complete instructions on downloading and installing are give here.
http://chdk.wikia.com/wiki/Prepare_your_SD_card
The STICK utility listed at the top of that page will do pretty much everything for you if you don't want to read all the documentation.
« Last Edit: 05 / October / 2013, 22:49:46 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


Re: "shoot" in a script doesn't work on G12. Help please...
« Reply #4 on: 05 / October / 2013, 22:57:07 »
That explains a lot! 

I am just trying to get a camera set for making maps using a weather balloon.  I did use a program that configured the card and then I modified my script using instructions from CHDK.

Doh!

Thanks for your help.  I will download and install CHDK.

Re: "shoot" in a script doesn't work on G12. Help please...
« Reply #5 on: 05 / October / 2013, 23:39:03 »
You'll be interested to know that using your link,  I downloaded the latest G12 firmware, installed it, and my script runs fine.

Thanks!

 

Related Topics