{"id":64,"date":"2008-04-12T00:28:59","date_gmt":"2008-04-12T05:28:59","guid":{"rendered":"http:\/\/armanbohn.com\/blog\/?p=64"},"modified":"2008-05-19T22:59:55","modified_gmt":"2008-05-20T05:59:55","slug":"portland-japanese-gardens-scripting-language","status":"publish","type":"post","link":"http:\/\/armanbohn.com\/blog\/2008\/04\/12\/portland-japanese-gardens-scripting-language\/","title":{"rendered":"Portland Japanese Gardens + Scripting Language"},"content":{"rendered":"<p>Liz and I went up to the Japanese gardens today.  It was over 80 degrees up there!  Whew!!!<\/p>\n<p>I finished a new script in uBasic for my Canon A640.  This one shoots a number of pictures, moves the focus in a specified increment (shooting a picture at each step), and then shoots another round of pictures at a second (more distant) focus.  It allows for focus control while shooting time lapse.<\/p>\n<blockquote><p>\nUBASIC CANON A640 FOCUS A TO B SCRIPT<br \/>\n(not in proper script format)<\/p>\n<p>@title Focus Shift (Set Focus Manual)<br \/>\n@param a Hold On Initial (frames)<br \/>\n@default a 24<br \/>\n@param b  Focus Shift (mm)<br \/>\n@default b 1<br \/>\n@param c Hold On Final (frames)<br \/>\n@default c 24<br \/>\n@param d Focus Frames<br \/>\n@default d 48<\/p>\n<p>if a<1 then let a=1\nif b<1 then let b=1\nif c<1 then let c=1\nif d<1 then let d=1\n\nq=a+c+d\n\nget_focus f\n\nfor s= 1 to a\n    print \"Pic\", s, \"of\", q, \"Focus\", f; \"mm\"\n    shoot\nnext s\n\ng=f\n\nfor s= 1 to d\n    if g<62 then let g=62\n    if g>65535 then let g=65535<br \/>\n    g=g+b<br \/>\n    print &#8220;Pic&#8221;, a+s, &#8220;of&#8221;, q,&#8221;Focus&#8221;, g; &#8220;mm&#8221;<br \/>\n    set_focus g<br \/>\n    shoot<\/p>\n<p>next s<\/p>\n<p>for s= 1 to c<br \/>\n    print &#8220;Pic&#8221;, a+d+s, &#8220;of&#8221;, q, &#8220;Focus&#8221;, g; &#8220;mm&#8221;<br \/>\n    shoot<br \/>\nnext s<\/p>\n<p>end<\/p>\n<\/blockquote>\n<p>I also shot quite a bit with my HV20 so the video below is mostly live action video, not scripted time lapse.<\/p>\n<p>There are four scripted time lapse shots.  The first shot is one of them.  Maybe yall can pick out the other three.<\/p>\n<p>I wrote the little song this afternoon.<\/p>\n<p>Japanese Gardens<\/p>\n<p>~ 18mb <\/p>\n<p>Double click to play:<\/p>\n<p>[qt:\/blog\/movies\/JG.mov \/blog\/movies\/JG_poster.mov 480 270]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Liz and I went up to the Japanese gardens today. It was over 80 degrees up there! Whew!!! I finished a new script in uBasic for my Canon A640. This one shoots a number of pictures, moves the focus in &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"http:\/\/armanbohn.com\/blog\/2008\/04\/12\/portland-japanese-gardens-scripting-language\/\"> <span class=\"screen-reader-text\">Portland Japanese Gardens + Scripting Language<\/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":[163,5,172],"tags":[],"class_list":["post-64","post","type-post","status-publish","format-standard","hentry","category-camera-script","category-movies","category-video-experiment"],"_links":{"self":[{"href":"http:\/\/armanbohn.com\/blog\/wp-json\/wp\/v2\/posts\/64","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=64"}],"version-history":[{"count":0,"href":"http:\/\/armanbohn.com\/blog\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"wp:attachment":[{"href":"http:\/\/armanbohn.com\/blog\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/armanbohn.com\/blog\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/armanbohn.com\/blog\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}