PowerShot 300HS remote and script ? - Script Writing - CHDK Forum
supplierdeeply

PowerShot 300HS remote and script ?

  • 9 Replies
  • 5579 Views
PowerShot 300HS remote and script ?
« on: 06 / March / 2012, 04:39:29 »
Advertisements
how can i ger the remote to run a script?
 
I would like to start a HDR script usen the remote.
 i have been at it for days now and no luck.
all i can do is get the remote to just do a SIMPLE shoot.
and to me thats just a wast of time...........

i was working with "something" like this...
but all it does is click on forever.
I want it to start with the remote
it will take the 3 shots and then STOP
and then Wait for me to hit the remote button again to take the Next 3 shots.



@title High Dynamic Range

:loop
wait_click 1
is_key k "remote"
if k=1 then print "1) normal"
shoot

set_aflock 1
get_av96 p
get_sv96 s
get_tv96 t

print "2) bright"
set_tv96_direct t-192
set_sv96 s
set_av96 p
shoot

print "3) dark"
set_tv96_direct t+192
set_sv96 s
set_av96 p
shoot
     
set_aflock 0
print "...done"

goto "loop"
end

*

Offline zeno

  • *****
  • 891
Re: PowerShot 300HS remote and script ?
« Reply #1 on: 06 / March / 2012, 05:54:57 »
You need to amend your logic to something like this. The key is you need two nested loops - an outer one that repeats everytime the remote is pressed and an inner one that waits for the press.

Code: [Select]
while 1
   do
       sleep 10
       a = get_usb_power
   until a > 0
   print "1) normal"
   shoot

   set_aflock 1
   get_av96 p
   get_sv96 s
   get_tv96 t

   print "2) bright"
   set_tv96_direct t-192
   set_sv96 s
   set_av96 p
   shoot

   print "3) dark"
   set_tv96_direct t+192
   set_sv96 s
   set_av96 p
   shoot
     
   set_aflock 0
   print "...done"
wend
« Last Edit: 06 / March / 2012, 07:53:50 by zeno »
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

Re: PowerShot 300HS remote and script ?
« Reply #2 on: 06 / March / 2012, 07:13:09 »
how can i ger the remote to run a script?
With the current CHDK stable release,  you need to do something like the script zeno posted above.  With the development version of CHDK,  there is an option to let pressing the USB remote start the currently loaded script.  In CHDK-DE,  this happens automatically, there is no option.

So it just depends on which version of CHDK you are using.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: PowerShot 300HS remote and script ?
« Reply #3 on: 06 / March / 2012, 12:24:40 »
ixus220_elph300hs-101d-1.0.0-1704-full_ALPHA.

off the autobuild server.......

 ???


Re: PowerShot 300HS remote and script ?
« Reply #4 on: 06 / March / 2012, 13:12:33 »
off the autobuild server.......
So the script posted by zeno is your only option.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: PowerShot 300HS remote and script ?
« Reply #5 on: 06 / March / 2012, 23:41:12 »
no luck.
« Last Edit: 07 / March / 2012, 00:16:02 by radioman193 »

Re: PowerShot 300HS remote and script ?
« Reply #6 on: 07 / March / 2012, 00:11:40 »
it works the first time ...
but after the 3 shots i hit the usb button again i get (Parse err)

 :(
Add a line with the single word End at the bottom of the file ( as the last line ) and then make sure there is a blank line or two after it ?

Also, please cut and paste the exact script you are now using here.  Use the Insert Code function in the edit tools (the button with the # sign) if at all possible ?

What messages do you see on the screen while the script is running ?

« Last Edit: 07 / March / 2012, 00:13:45 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: PowerShot 300HS remote and script ?
« Reply #7 on: 07 / March / 2012, 00:23:23 »
i got it working with this one ....
I use this type of script for Nite "DARK" sky photos.

the error was cause no title after i added that all went fine..... "sofar" ....  :D


@title Remote HDR2

while 1
   do
       sleep 10
       a = get_usb_power
   until a > 0

print "1) normal"
shoot
   
   set_aflock 1
   get_av96 p
   get_sv96 s
   get_tv96 t

   print "2) bright"
   set_tv96_direct t-200
   set_sv96 s
   set_av96 p
   shoot

   print "3) brighter"
   set_tv96_direct t-250
   set_sv96 s
   set_av96 p
   shoot
     
print "4) brightest"
   set_tv96_direct t-300
   set_sv96 s
   set_av96 p
   shoot

   set_aflock 0
   print "...done"


wend




Re: PowerShot 300HS remote and script ?
« Reply #8 on: 05 / May / 2012, 12:26:47 »
i'm a CHDK noob and have been floundering around trying to figure it out.
  • is there a 300HS HDR script?
  • you mentioned a 300HS remote shutter release?
  • can you point me to the 300HS scripts?
  • is there a way to auto boot into CHDK instead of changing the firmware every time or is there a reason not to auto boot?
  • i turned on superfine JPG compression - why does the compressed bits/pixel show 5 @ superfine and 3@ normal large?  the superfine file size is about 3 times as large and the normal large JPG setting as i would expect
thx!
« Last Edit: 05 / May / 2012, 12:45:07 by bagofdonuts »

Re: PowerShot 300HS remote and script ?
« Reply #9 on: 05 / May / 2012, 13:27:29 »
is there a 300HS HDR script?
Scripts are pretty much common to all cameras.  There is nothing specific to the 300HS.  Search the CHDK wiki for HDR.  Or take a look at the simple HDR script already included in the CHDK/SCRIPTS directory on your SD card

Quote
you mentioned a 300HS remote shutter release?
Again,  the USB remote support in CHDK is not camera specific.  Here's a good place to start : http://chdk.wikia.com/wiki/USB_Remote_Cable

Quote
can you point me to the 300HS scripts?
<see comments above>

Quote
is there a way to auto boot into CHDK instead of changing the firmware every time or is there a reason not to auto boot?
http://chdk.wikia.com/wiki/Prepare_your_SD_card
« Last Edit: 05 / May / 2012, 13:33:17 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal