{"id":89,"date":"2008-04-28T22:10:11","date_gmt":"2008-04-29T05:10:11","guid":{"rendered":"http:\/\/armanbohn.com\/blog\/?p=89"},"modified":"2008-05-19T22:53:41","modified_gmt":"2008-05-20T05:53:41","slug":"timelapse-focus-wobble-script","status":"publish","type":"post","link":"http:\/\/armanbohn.com\/blog\/2008\/04\/28\/timelapse-focus-wobble-script\/","title":{"rendered":"&#8230; timelapse focus wobble script 1.0 &#8230;"},"content":{"rendered":"<p>I wrote  a timelapse random focus wobble script today with some help from someone over on the <a href=\"http:\/\/chdk.setepontos.com\/index.php\/board,7.0.html\">CHDK forum<\/a>.  I was able to create a pseudo-random number sequence using a linear feedback shift register.<\/p>\n<p>You can see a patern develope in the randomness in the way the shots pulse.  The script needs more work.<\/p>\n<p>This effect will be used in portions of the video for the song &#8220;Combat&#8221;.<\/p>\n<p>My code looks like this so far:<\/p>\n<blockquote><p>@title Macro Focus Wobble<br \/>\n@param b # of pics<br \/>\n@param f divisor<\/p>\n<p>get_focus a<\/p>\n<p>\tc = 1<\/p>\n<p>        for g=0 to b<br \/>\n\t\tz=a<br \/>\n                gosub &#8220;lfsr8&#8221;<br \/>\n                j=c\/f<br \/>\n                z=z-256\/f+j<br \/>\n                if z<0 then let z=c\n                set_focus z\n                print \"focus= \", z,\"mm\"\n\t\tprint \"pic # \",g\n                shoot\n\tnext g\n\t\n\tend\n\t\n\t\n:lfsr8\n\tif (c &#038; 1) = 1 then\n\t\tc = (c\/2) ^ 142\n\telse\n\t\tc = c \/ 2\n\tendif\n        \n       \n\t\n\treturn<\/p><\/blockquote>\n<p>The divisor sets how much the random sequence effects the random change in focus.<\/p>\n<p>~2mb <\/p>\n<p>Double click to play:<\/p>\n<p>[qt:\/blog\/movies\/wobble.mov blog\/movies\/wobble_poster.mov 480 270]<\/p>\n<p>I also got a special package in the mail today that I&#8217;m really excited about!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"http:\/\/armanbohn.com\/blog\/2008\/04\/28\/timelapse-focus-wobble-script\/\"> <span class=\"screen-reader-text\">&#8230; timelapse focus wobble script 1.0 &#8230;<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,163,5,172],"tags":[84,144,42,105],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-bits-solo-record","category-camera-script","category-movies","category-video-experiment","tag-combat","tag-script","tag-time-lapse","tag-timelapse"],"_links":{"self":[{"href":"http:\/\/armanbohn.com\/blog\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/armanbohn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/armanbohn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/armanbohn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/armanbohn.com\/blog\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":0,"href":"http:\/\/armanbohn.com\/blog\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"wp:attachment":[{"href":"http:\/\/armanbohn.com\/blog\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/armanbohn.com\/blog\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/armanbohn.com\/blog\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}