inverted remote script - Completed and Working Scripts - CHDK Forum

inverted remote script

  • 9 Replies
  • 9361 Views
*

Offline fudgey

  • *****
  • 1705
  • a570is
inverted remote script
« on: 19 / April / 2008, 06:57:12 »
Advertisements
How about this?

invertedremote.bas:
Code: [Select]
rem Inverted remote USB switch script with burst/review time control.
rem By fudgey on A570IS (Digic III), should work an other models as well.
rem Usage: start script (with USB remote enabled from script menu),
rem press USB shutter. Camera will shoot when you release shutter.
rem Note: this is not nearly as accurate for syncing as the SDM build.
rem Increase review time to see shot review. If in continous drive mode,
rem camera will shoot a burst of images instead of reviewing.
@title Inverted Remote
@param a Burst/Review time (s)
@default a 0
@param b safety sleep (0.1 s)
@default b 3

if a<1 then a=100 else a=a*1000
if b<0 then b=0 else b=100*b

:presswait
  do
  until is_key "remote"
  press "shoot_half"
  sleep b
  do
  until not (is_key "remote")
  press "shoot_full"
  sleep a
  release "shoot_full"
  release "shoot_half"
  sleep b
goto "presswait"

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
inverted remote script
« Reply #1 on: 19 / April / 2008, 07:11:18 »
wow, thanks! this works like a charm!
now i have my cams "almost in sync" without sdm.
shall i move your post to completed scripts?

*

Offline fudgey

  • *****
  • 1705
  • a570is
inverted remote script
« Reply #2 on: 19 / April / 2008, 07:58:24 »
wow, thanks! this works like a charm!
now i have my cams "almost in sync" without sdm.

Goodie :)

shall i move your post to completed scripts?

Feel free to do that  ;)


inverted remote script
« Reply #3 on: 19 / April / 2008, 11:32:43 »
Deleted
« Last Edit: 22 / April / 2008, 18:23:39 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye


inverted remote script
« Reply #4 on: 19 / April / 2008, 13:28:31 »
Couldn"t you use get_prop 205/206 instead of sleep commands? So it wouldn't depend on the time to set focus and on available light.

*

Offline fudgey

  • *****
  • 1705
  • a570is
inverted remote script
« Reply #5 on: 19 / April / 2008, 14:24:21 »
Couldn"t you use get_prop 205/206 instead of sleep commands? So it wouldn't depend on the time to set focus and on available light.

You could, but this isn't really a timing critical script and using get_prop 205/206 draws some unwanted side effects(*), which is why you should only use it when it's really needed (like in motion detection scripts to get rid of eternal shooting loops). In a USB remote sync script it's hardly a problem since you're there next to the cameras looking at the perfect moment to work the shutter anyway...

(*) Two that come to my mind are that property 205/206 is incompatible at least with S3 in Ae lock mode (script will get stuck since get_prop always returns 1) and video mode (script will run with zero delays as get_prop always returns 0).

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
inverted remote script
« Reply #6 on: 20 / April / 2008, 09:27:32 »
one thing i noticed: when i record a video and want to take a photo during that, pressing the usb remote shoots the pic straight away, without waiting for me to release the remote again. minor issue, which is not very important.
thanks :)

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: inverted remote script
« Reply #7 on: 20 / April / 2008, 10:33:27 »
one thing i noticed: when i record a video and want to take a photo during that, pressing the usb remote shoots the pic straight away, without waiting for me to release the remote again. minor issue, which is not very important.
thanks :)

Errrrmm hmmm... you must be using the S3 which has some weird features I have no clue about :blink:.
I mean, if I put my a570is to video mode and run this script while it's recording it will just stop the video and start it on the next button release.


*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: inverted remote script
« Reply #8 on: 20 / April / 2008, 10:42:16 »
yeah the s3is (and the s5is i assume) have an extra video button which starts and stops video. so pressing the normal photo button takes pictures :)

Re: inverted remote script
« Reply #9 on: 20 / April / 2008, 17:45:07 »
FWIW,

While testing numerous versions of SDM for the TX-1, I discovered that, if a microswitch is wired on the Normally Closed side instead of the Normally Open side, many, but not all, USB related features would operate as expected.

There were no deleterious effects to the camera/USB port from booting with power applied and then breaking power to trigger. Some events were actually faster this way and triggered on the press rather than the release of the remote button.

~~~~~~~~~~~~~~~~~~~~~

<")%%%><<

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal