Video fast zooming script - page 2 - Script Writing - CHDK Forum supplierdeeply

Video fast zooming script

  • 12 Replies
  • 4362 Views
*

Offline reyalp

  • ******
  • 14118
Re: Video fast zooming script
« Reply #10 on: 03 / August / 2020, 12:34:24 »
Advertisements
can you make a version of it that uses c=c+1 / c=c-1 and set_zoom(c) instead of press('zoom_in')?
Sorry, I don't understand what you're asking for.
Don't forget what the H stands for.

Re: Video fast zooming script
« Reply #11 on: 04 / August / 2020, 01:19:37 »
your version of the script uses press('zoom_in') and press('zoom_out') for zooming. I'm wonder if it can be replaced by c=c+1 / c=c-1 and set_zoom(c) to have full speed zooming

*

Offline reyalp

  • ******
  • 14118
Re: Video fast zooming script
« Reply #12 on: 04 / August / 2020, 02:25:00 »
your version of the script uses press('zoom_in') and press('zoom_out') for zooming. I'm wonder if it can be replaced by c=c+1 / c=c-1 and set_zoom(c) to have full speed zooming
You could have it repeatedly call set_zoom, but that won't give you a smooth zoom like holding the button down. It will be a bunch of jerky steps, much slower than full speed zoom.

On one of my cameras
Code: [Select]
for i=1,50 do set_zoom(i) end
took 11.3 seconds.
Code: [Select]
set_zoom(50)
took 0.9 seconds.
Don't forget what the H stands for.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal