I wrote a timelapse random focus wobble script today with some help from someone over on the CHDK forum. I was able to create a pseudo-random number sequence using a linear feedback shift register.
You can see a patern develope in the randomness in the way the shots pulse. The script needs more work.
This effect will be used in portions of the video for the song “Combat”.
My code looks like this so far:
@title Macro Focus Wobble
@param b # of pics
@param f divisor
c = 1
for g=0 to b
if z<0 then let z=c set_focus z print "focus= ", z,"mm" print "pic # ",g shoot next g end :lfsr8 if (c & 1) = 1 then c = (c/2) ^ 142 else c = c / 2 endif return
The divisor sets how much the random sequence effects the random change in focus.
Double click to play:
I also got a special package in the mail today that I’m really excited about!!!