{"id":1031,"date":"2019-08-23T14:54:14","date_gmt":"2019-08-23T13:54:14","guid":{"rendered":"https:\/\/howiem.org\/wordpress\/?p=1031"},"modified":"2022-07-14T06:27:07","modified_gmt":"2022-07-14T06:27:07","slug":"blender-to-houdini-camera-exporter-script","status":"publish","type":"post","link":"https:\/\/howiem.org\/wordpress\/2019\/08\/23\/blender-to-houdini-camera-exporter-script\/","title":{"rendered":"Blender to Houdini camera exporter script"},"content":{"rendered":"<p>Unlikely anyone but me needs this, but just in case: a Houdini script to copy camera animation to the clipboard as a Blender-flavour Python script. Select a camera (or camera switcher) in Houdini, run the script, go to Blender, create a new text block and hit Paste. Execute it and Boom! there&#8217;s your camera, all animated an&#8217; stuff.<\/p>\n<p>Suspect most folk wanna go the other way, but I&#8217;ve a stupidly complex object already in Blender that wouldn&#8217;t be trivial to export, and my scene&#8217;s in Houdini. Lots of zany animated texture stuff going on as well&#8230; why recreate it if Blender can render it happily? Just need the camera to match up with the rest of the scene.<\/p>\n<p>I&#8217;d been going round the houses, exporting to AE first, then from AE to Blender, but focal-length and DoF settings weren&#8217;t making it through, so this is an improvement.<\/p>\n<p>Always weird, though, writing a Python script that generates &#8230; a Python script. &#8216;Specially when you&#8217;re running it in one 3D package, with its own data structures\/methods, and it has to produce a script for a different package with different names and concepts for everything<\/p>\n<p>hey ho&#8230;. <a href=\"https:\/\/gist.github.com\/howiemnet\/f99aa19e1d9a80e23029f2cf465bb565\" rel=\"noopener\" target=\"_blank\">github gist linky<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unlikely anyone but me needs this, but just in case: a Houdini script to copy camera animation to the clipboard as a Blender-flavour Python script. Select a camera (or camera&#8230;<\/p>\n","protected":false},"author":2,"featured_media":1622,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6],"tags":[12,14,17,18,19],"class_list":{"0":"post-1031","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-animation-and-motion-graphics","8":"category-houdini-tips","9":"tag-animation","10":"tag-blender","11":"tag-export","12":"tag-houdini","13":"tag-import"},"_links":{"self":[{"href":"https:\/\/howiem.org\/wordpress\/wp-json\/wp\/v2\/posts\/1031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howiem.org\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howiem.org\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howiem.org\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/howiem.org\/wordpress\/wp-json\/wp\/v2\/comments?post=1031"}],"version-history":[{"count":1,"href":"https:\/\/howiem.org\/wordpress\/wp-json\/wp\/v2\/posts\/1031\/revisions"}],"predecessor-version":[{"id":1623,"href":"https:\/\/howiem.org\/wordpress\/wp-json\/wp\/v2\/posts\/1031\/revisions\/1623"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/howiem.org\/wordpress\/wp-json\/wp\/v2\/media\/1622"}],"wp:attachment":[{"href":"https:\/\/howiem.org\/wordpress\/wp-json\/wp\/v2\/media?parent=1031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howiem.org\/wordpress\/wp-json\/wp\/v2\/categories?post=1031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howiem.org\/wordpress\/wp-json\/wp\/v2\/tags?post=1031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}