Zoomin&out - Script Writing - CHDK Forum  

Zoomin&out

  • 2 Replies
  • 2504 Views
Zoomin&out
« on: 14 / August / 2014, 11:36:21 »
Advertisements
Just for fun i made a personal adaptation of a fudgey's script (2008): the Zoomin&out lua script (attached).

Tested on Ixus 125 HS

What it does:
- Zooming during long exposures

You can set:
- zoom in or out
- continuous or step by step zooming
- zoom steps at once
- exposure time (sec)
- ISO (80 100 200 400 800 1250 1600)
- ND Filter (auto, yes, no)

WARNINGS
- normally cameras don't zoom during exposure, so, theoretically, this script could cause an hardware damage.
- you could get a crash (Lens Error). In case just remove the battery. I've got it some times with no conseguences.
DON'T TRY THIS SCRIPT IF YOU FEAR THESE EVENTS!

- for cameras with => 64 zoom steps (S-series), Ixus 125, etc. it's safe a "zoom steps at once" => 4
To know how many zoom steps has your camera run the zoom steps.lua attached (it's safe  :) )

TIPS
- this script requires a long exposure time (=> 1 sec). So, use it in dim lights scenes with low ISO. With bright scenes you need an external ND filter in front of the lens.

TO DO (... any help very appreciated):
- the zooming out step by step still doesn't work   works fine now (thanks waterwingz !)
- correct script errors (due to my poor knowledge)
- correct the bad English in this post  :-)

Sample


« Last Edit: 15 / August / 2014, 09:39:35 by fabri22 »

Re: Zoomin&out
« Reply #1 on: 14 / August / 2014, 20:23:30 »
Just for fun i made a personal adaptation of a fudgey's script (2008): the Zoomin&out lua script (attached).
Fun stuff!  Although as the English expression says : " A little goes a long way".

Quote
- the zooming out step by step still doesn't work on my Ixus 125
Have not tried the script but I think you need the iterator in "for" loop to be negative ?

Code: [Select]
function zoomout()
g = get_zoom_steps()
for z=g,2,-b do
    set_zoom(z-1)
    sleep(a/max_z_steps*1000)
    end
    end
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Zoomin&out
« Reply #2 on: 15 / August / 2014, 10:13:40 »
Thanks for writing something on a "tabula rasa" (referring to my scripting and language knowledge)  :)

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal