Need help with zoom script - page 2 - LUA Scripting - CHDK Forum supplierdeeply

Need help with zoom script

  • 15 Replies
  • 3302 Views
Re: Need help with zoom script
« Reply #10 on: 25 / April / 2018, 03:10:02 »
Advertisements
I divided exp:run() in exp:runa() and exp:runb(). runa makes do_meter and runb make calculation and setting of exposure parameter. Now I look like the script waits in the following loop for around 12s:
Code: [Select]
           release("shoot_half")
            repeat sleep(10) until not get_shooting()

Nearly the same delay that I typically have on the end of rawopint.

I have now decided to realize the simple solution with reading bv and calculating only a smooth tv with fixed ISO settings.
M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Online reyalp

  • ******
  • 12174
Re: Need help with zoom script
« Reply #11 on: 25 / April / 2018, 13:06:42 »
I divided exp:run() in exp:runa() and exp:runb(). runa makes do_meter and runb make calculation and setting of exposure parameter. Now I look like the script waits in the following loop for around 12s:
Code: [Select]
           release("shoot_half")
            repeat sleep(10) until not get_shooting()

Nearly the same delay that I typically have on the end of rawopint.
This is likely due to one of the hooks timing out. You should call
hook_raw.continue()
when you are done with meter.
Don't forget what the H stands for.

Re: Need help with zoom script
« Reply #12 on: 27 / April / 2018, 05:34:02 »
This is likely due to one of the hooks timing out. You should call
hook_raw.continue()
when you are done with meter.

Thanks, timing works now very well…  :)
 
M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

Re: Need help with zoom script
« Reply #13 on: 03 / May / 2018, 07:14:07 »
Basically, the combined script works very well. Meter96 is a bit noisy. But that was to be expected by the zoom change. In any case better than the camera with automatic exposure to run.

I'm surprised I see the following error only once after each zoom change

Code: [Select]
411 != cam 412
If I understand the following statement correctly, then 'init' is called only once at the beginning and then the check always takes place or?

Code: [Select]

if not self.tv96 then
    self:init_exposure_params_from_cam()
else
    self:sanity_check_cam_exposure_params()
end
M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd


Re: Need help with zoom script
« Reply #14 on: 11 / May / 2018, 07:25:36 »
My zoom script works quite well. Many thanks to reyalp and waterwingz for the preparation and support. Here are a few examples and the script. Except for the fourth scene, all originated with the SX50. The fourth scene is from the G1x, but not so interesting because of the low zoom. Next I will test the script with the SX230.

A few notes on use
- No Aperture an ND support
- You should always take the aperture of the largest focal length in AV mode (if possible)
- If use only JPG => set white balance to fixed value

use WITHOUT ANY WARRANTY…

M100 100a, M3 101a, 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), 2*S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

*

Online reyalp

  • ******
  • 12174
Re: Need help with zoom script
« Reply #15 on: 11 / May / 2018, 23:25:58 »
Looks like it's working very well, nicely done :)
Don't forget what the H stands for.

 

Related Topics