problems with zoom and zoom_speed - Script Writing - CHDK Forum

problems with zoom and zoom_speed

  • 1 Replies
problems with zoom and zoom_speed
« on: 21 / April / 2010, 10:57:47 »

I've got S5 IS.
I write a script that starts recording video. I want to add possibility to change zoom during recording:

if z>128 then z=128
press "zoom_in"
   get_zoom y
until y>=z
release "zoom_in"

In movie mode there are avaliable two speeds of zooming. Press "zoom_in" function is zooming in with high speed, like when i turn zooming thing on the camera full right.  How to zoom with lower speed (like turning halfway)? Set_zoom_speed does not work. Is there something like press "zoom_in_half" ?
Any ideas? :-[
« Last Edit: 21 / April / 2010, 14:12:52 by Misiakufal »


Offline fudgey

  • *****
  • 1705
  • a570is
Re: problems with zoom and zoom_speed
« Reply #1 on: 25 / April / 2010, 06:55:21 »
If I'm not mistaken, that hasn't been implemented in CHDK. Then again the way I see it in s5 kbd.c, I would've guessed it would always zoom slowly... :blink:

Anyway, you might be able to find an event that sends this particular keypress or one that causes slow zoom. Events are available through a Lua interface but it probably requires some work to find (and test) the events. See .


Related Topics