CHDK Forum
Using CHDK => Script Writing => Topic started by: fabri22 on 31 / August / 2014, 11:12:53
-
The "Handheld Nightscene" mode is a nice feature (poorly documented) on my camera that reduces camera shake and noise
by combining (3 ?) consecutive shots.
But it doesn't allow to set ISO values which are often automatically setted at 1600/3200 in dim lights.
So i wrote this few lines lua script to "hack" this nice mode for lower ISO values (JPG Superfine included) using the propertycase (http://chdk.wikia.com/wiki/PropertyCase) method
--[[
@title Handheld Cust.ISO
Author fabri22
@param i ISO Max
@default i 0
@values i 400 500 640 800 1000 1250 1600
]]
capmode=require("capmode")
props=require("propcase")
-- ========================== Main Program =================================
sv_table = { 400, 500, 640, 800, 1000, 1250, 1600 }
j = sv_table[i+1]
set_draw_title_line(0) -- title off
set_prop(props.FLASH_MODE, 2) -- flash off
capmode.set("SCN_NIGHT_SCENE") -- Handheld Nightscene
sleep(100)
set_prop(57, 0) -- JPG Superfine
sleep(100)
set_prop(150, j) -- set Max ISO
sleep(100)
exit_alt() -- done - ready for shooting
It seems to work fine on my ixus 125 (Digic V)
...even if when setting @param ISO Max to 400 i get 500 in dim lights :blink:
-
Very nice. I'll add this to the wiki page for scripts.