--[[@title Long-Exposure Continous Shooting@param a Exposure Time (Seconds)@default a 10@param b Number of Shots@default b 10]]--This is an array of TV96 values for exposure tomes 1-60 seconds.--It is indexed by the exposure time in seconds.expVAL = {0, -96, -152, -192, -223, -248, -270, -288, -304, -319, -332, -344, -355, -366, -375, -384, -392, -400, -408, 415, -422, -428, -434, -440, -446, -451, -456, -462, -466, -471, -476, -480, -484, -488, -492, -496, -500, -504, -507, -511, -514, -518, -521, -524, -527, -530, -533, -536, -539, -542, -545, -547, -550, -552, -555, -558, -560, -562, -565, -567}--This is the main part of the script.for i = 1,b doprint( "Shot", i)set_tv96_direct( expVAL[a] )sleep( 100 )shoot()sleep( 1000 )end
What happens if the user enters 61 seconds? How about -1 seconds?
Looks like a great place to use the @value feature added in the 1.2.0 dev branch.
Quote from: waterwingz on 20 / January / 2013, 17:37:48Looks like a great place to use the @value feature added in the 1.2.0 dev branch.Good idea! I'll have to use it in the future. It looks like this option would do the trick:@range x n m
--[[@title Long-Exposure Continuous Shooting@param a Exposure Time (Seconds)@default a 10@range a 1..60@param b Number of Shots@default b 10]]--This is an array of TV96 values for exposure times 1-60 seconds.--It is indexed by the exposure time in seconds.expVAL = {0, -96, -152, -192, -223, -248, -270, -288, -304, -319, -332, -344, -355, -366, -375, -384, -392, -400, -408, 415, -422, -428, -434, -440, -446, -451, -456, -462, -466, -471, -476, -480, -484, -488, -492, -496, -500, -504, -507, -511, -514, -518, -521, -524, -527, -530, -533, -536, -539, -542, -545, -547, -550, -552, -555, -558, -560, -562, -565, -567}--This is the main part of the script.for i = 1,b doprint( "Shot", i)set_iso_real( 80 )set_tv96_direct( expVAL[a] )sleep( 100 )shoot()end
Code: [Select]--[[@title Long-Exposure Continuous Shooting@param a Exposure Time (Seconds)@default a 10@range a 1..60@param b Number of Shots@default b 10@range a 0..9999]]--This is an array of TV96 values for exposure times 1-60 seconds.--It is indexed by the exposure time in seconds.expVAL = {0, -96, -152, -192, -223, -248, -270, -288, -304, -319, -332, -344, -355, -366, -375, -384, -392, -400, -408, 415, -422, -428, -434, -440, -446, -451, -456, -462, -466, -471, -476, -480, -484, -488, -492, -496, -500, -504, -507, -511, -514, -518, -521, -524, -527, -530, -533, -536, -539, -542, -545, -547, -550, -552, -555, -558, -560, -562, -565, -567}--This is the main part of the script.--MUST BE IN CONTINUOUS DRIVE MODEif(b>0)then b=b+get_exp_count()endif(b>9999)b=b-9999 -- starts from 1 againset_iso_real( 80 )set_tv96_direct( expVAL[a] )press("shoot_full") -- holds shutter down in continuous moderepeat sleep(10) until get_exp_count()==bHope you like it!
--[[@title Long-Exposure Continuous Shooting@param a Exposure Time (Seconds)@default a 10@range a 1..60@param b Number of Shots@default b 10@range a 0..9999]]--This is an array of TV96 values for exposure times 1-60 seconds.--It is indexed by the exposure time in seconds.expVAL = {0, -96, -152, -192, -223, -248, -270, -288, -304, -319, -332, -344, -355, -366, -375, -384, -392, -400, -408, 415, -422, -428, -434, -440, -446, -451, -456, -462, -466, -471, -476, -480, -484, -488, -492, -496, -500, -504, -507, -511, -514, -518, -521, -524, -527, -530, -533, -536, -539, -542, -545, -547, -550, -552, -555, -558, -560, -562, -565, -567}--This is the main part of the script.--MUST BE IN CONTINUOUS DRIVE MODEif(b>0)then b=b+get_exp_count()endif(b>9999)b=b-9999 -- starts from 1 againset_iso_real( 80 )set_tv96_direct( expVAL[a] )press("shoot_full") -- holds shutter down in continuous moderepeat sleep(10) until get_exp_count()==b
:19: 'then' expected near 'b'PRESS SHUTTER TO CLOSE
Started by fbonomi Creative Uses of CHDK
Started by dom-a « 1 2 » Creative Uses of CHDK
Started by outslider « 1 2 3 4 5 » Creative Uses of CHDK
Started by Anoop Kumar Script Writing
Started by thangggg123 Script Writing