rem pygmy_giant's adaption of MLuna's Motion Detection script itself based on MX3 sample script@title KAP Reverse MDrem This script combines an intevalometer with an inverted motion detection script enabling an unsteady camera to periodically take shots when still.rem Shot without auto-focus/with auto-focus/continuously (need to put in continuous mode manually)rem t implies test mode with MD cells drawing and no shots taken@param a Shot (0=nf/1=f/2=c/3=t)@default a 1rem How long the shutter button will be pressed in continuous mode@param b Continuos shoot (secs)@default b 10@param c Threshold (0-255)@default c 5@param d Compare Interval (msecs)@default d 20@param e Compare Interval (secs)@default e 0rem If this value is too small, the camera goes continuously shooting after the 1st shot.rem Experiment with this value to find one fitted to your needs@param f Delay Before Sensing (secs)@default f 5@param g Pix step(speed/accuracy adj)@default g 5@param h Columns @default h 6@param i Rows @default i 6rem Frame width in which no MD is performed (in cell units)@param j Dead frame @default j 0@param k Delay After Shot (secs)@default k 0@param l Delay Before Start (secs)@default l 0if l>0 then print "waiting..."if a<0 then let a=0if a>3 then let a=3if c<0 then let c=0if d<0 then let d=0if e<0 then let e=0if g<1 then let g=1if h<1 then let h=1if i<1 then let i=1if j<0 then let j=0rem Conversions secs to msecslet b=b*1000let e=e*1000let f=f*1000let k=k*1000let l=l*1000let d=d+erem This is the timeout in msecs. After this period, the motion trap is rearmed.let T=f+d+100rem Parameters for the Dead Framelet J=j+1let H=h-jlet I=i-jsleep lprint "press Shutter to Stop":repete let t=0 md_detect_motion h, i, 1, T, d, c, 1, t, 1, J, J, H, I, 0, g, f if a=0 and t=0 then click "shoot_full" if a=1 and t=0 then shoot if a=2 and t=0 then goto "continuos" if a=3 then print "Detected cells: ",t if a=3 and t>0 then sleep k if t=0 then sleep k goto "repete":continuos let X=get_tick_count press "shoot_full" :contloop let U=get_tick_count let V=(U-X) if V<b then goto "contloop" release "shoot_full"goto "repete"end
Started by Jim Creative Uses of CHDK
Started by Jim Completed and Working Scripts
Started by jmjones999 General Help and Assistance on using CHDK stable releases
Started by thunderhammer Creative Uses of CHDK
Started by sironitomas Creative Uses of CHDK