{"id":783,"date":"2024-02-13T20:00:22","date_gmt":"2024-02-14T04:00:22","guid":{"rendered":"http:\/\/fx-td.com\/houdiniandchill\/?p=783"},"modified":"2024-02-13T20:08:37","modified_gmt":"2024-02-14T04:08:37","slug":"archived-post-by-waffleboytom-6","status":"publish","type":"post","link":"http:\/\/fx-td.com\/houdiniandchill\/2024\/02\/13\/archived-post-by-waffleboytom-6\/","title":{"rendered":"Archived post by waffleboytom"},"content":{"rendered":"<div class=\"postie-post\">\n<p class=\"\">I&#8217;ll post the code in a bit<\/p>\n<p class=\"\">&#8220;`py from pxr import UsdSkel<br \/>\nnode = hou.pwd() stage = node.editableStage()<br \/>\nskeleton_prim = None anim_prim = None<br \/>\nfor prim in stage.Traverse() :<br \/>\n    if prim.GetTypeName() == &#8220;Skeleton&#8221;:<br \/>\n        skeleton_prim = prim<br \/>\n    elif prim.GetTypeName() == &#8220;SkelAnimation&#8221;:<br \/>\n        anim_prim = prim<br \/>\n anim_binding = UsdSkel.BindingAPI.Apply(skeleton_prim.GetPrim())<br \/>\nanim_rel = anim_binding.CreateAnimationSourceRel()<br \/>\nanim_rel.AddTarget(anim_prim.GetPrim().GetPath())<br \/>\nvis = skeleton_prim.GetAttribute(&#8220;visibility&#8221;)<br \/>\nvis.Set(&#8220;invisible&#8221;)&#8220;`<\/p>\n<p class=\"\">Here&#8217;s my file featuring all methods we discussed (you need the dragon and the shark models )<\/p>\n<p class=\"\">(that snippet also hides the skeleton so it doesn&#8217;t show on the dragon)<\/p>\n<p>Attachments in this post: <br \/><a href=\"http:\/\/fx-td.com\/houdiniandchill\/wp-content\/uploads\/discord\/20240002\/13\/24\/waffles_usd_apply_anim.hip\">http:\/\/fx-td.com\/houdiniandchill\/wp-content\/uploads\/discord\/20240002\/13\/24\/waffles_usd_apply_anim.hip<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ll post the code in a bit &#8220;`py from pxr import UsdSkel node = hou.pwd() stage = node.editableStage() skeleton_prim = None anim_prim = None for prim in stage.Traverse() : if prim.GetTypeName() == &#8220;Skeleton&#8221;: skeleton_prim = prim elif prim.GetTypeName() == &#8220;SkelAnimation&#8221;: anim_prim = prim anim_binding = UsdSkel.BindingAPI.Apply(skeleton_prim.GetPrim()) anim_rel = anim_binding.CreateAnimationSourceRel() anim_rel.AddTarget(anim_prim.GetPrim().GetPath()) vis = skeleton_prim.GetAttribute(&#8220;visibility&#8221;) vis.Set(&#8220;invisible&#8221;)&#8220;` Here&#8217;s &hellip; <a href=\"http:\/\/fx-td.com\/houdiniandchill\/2024\/02\/13\/archived-post-by-waffleboytom-6\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Archived post by waffleboytom<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[],"_links":{"self":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/783"}],"collection":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/comments?post=783"}],"version-history":[{"count":0,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/783\/revisions"}],"wp:attachment":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/media?parent=783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/categories?post=783"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/tags?post=783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}