{"id":72,"date":"2013-06-02T16:31:49","date_gmt":"2013-06-02T07:31:49","guid":{"rendered":"http:\/\/humanrevlife.wordpress.com\/?p=72"},"modified":"2013-06-05T07:48:30","modified_gmt":"2013-06-04T22:48:30","slug":"mwp-motionbuilder-with-python%e3%80%80%e3%81%9d%e3%81%ae%ef%bc%91%e3%80%80%e3%80%8c%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%81%ae%e5%8f%96%e5%be%97%e3%80%8d","status":"publish","type":"post","link":"https:\/\/humrevlife.com\/?p=72","title":{"rendered":"MWP (Motionbuilder With Python)\u3000\u305d\u306e\uff11\u3000\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53d6\u5f97\u300d"},"content":{"rendered":"<p><span style=\"font-size: 18px;\"><strong>\u25a0Viewr\u30a6\u30a3\u30f3\u30c9\u30a6\u4e0a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u540d\u524d\u304b\u3089\u53d6\u5f97\u3059\u308b\u3002<\/strong><\/span><\/p>\n<p>[python]<br \/>\nfrom pyfbsdk import FBFindModelByLabelName<br \/>\nlSrchStr = &quot;search&quot;<br \/>\nlObj = FBFindModelByLabelName(lSrchStr)<\/p>\n<p>[\/python]<\/p>\n<p>\u3053\u3053\u3067\u53d6\u5f97\u3067\u304d\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u5358\u4f53\u3067\u3059\u3002<br \/>\n<strong><span style=\"color: #ff0000;\">\u203bFBFindModelByName\u306f2014\u304b\u3089\u524a\u9664\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/span><\/strong><\/p>\n<p><span style=\"font-size: 18px;\"><strong>\u25a0Viewr\u30a6\u30a3\u30f3\u30c9\u30a6\u4e0a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092namespace\u304b\u3089\u53d6\u5f97\u3059\u308b\u3002<\/strong><\/span><\/p>\n<p>[python]<br \/>\nfrom pyfbsdk import FBFindModelByName<br \/>\nlSrchStr = &quot;search&quot;<br \/>\nlComps = FBFindModelByName(lSrchStr)<\/p>\n<p>[\/python]<\/p>\n<p><span style=\"font-size: 18px;\"><strong>\u25a0\u30b7\u30fc\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u53d6\u5f97\u3059\u308b\u3002<\/strong><\/span><\/p>\n<p>[python]<br \/>\nfrom pyfbsdk import FBSystem<br \/>\nlComps = FBSystem().Scene.Components<\/p>\n<p>[\/python]<\/p>\n<p><span style=\"color: #0bf363;\">\u5168\u691c\u7d22\u306b\u306f\u30b3\u30ec\uff01<\/span>\u3067\u3059\u304c\u975e\u5e38\u306b\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<br \/>\n\u4f7f\u3044\u3069\u3053\u308d\u306f\u304a\u4efb\u305b\u3057\u307e\u3059\u3002<\/p>\n<p><span style=\"font-size: 18px;\"><strong>\u25a0Viewr\u30a6\u30a3\u30f3\u30c9\u30a6\u4e0a\u3067\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u3002<\/strong><\/span><\/p>\n<p>[python]<br \/>\nfrom pyfbsdk import FBGetSelectedModels,FBModelList<br \/>\nlMdls = FBModelList()<br \/>\nFBGetSelectedModels(lMdls)<\/p>\n<p>[\/python]<\/p>\n<p><span style=\"font-size: 18px;\"><strong>\u25a0Navigator\u30a6\u30a3\u30f3\u30c9\u30a6\u4e0a\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u53d6\u5f97\u3059\u308b\u3002(Constraint\u306e\u5834\u5408)<\/strong><\/span><\/p>\n<p>[python]<br \/>\nfrom pyfbsdk import FBSystem<br \/>\nlConsts = FBSystem().Scene.Constraints<\/p>\n<p>[\/python]<\/p>\n<p>\u203b\u88dc\u8db3<br \/>\n1. Navigator\u30a6\u30a3\u30f3\u30c9\u30a6\u4e0a\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306fFBSystem().Scene\u5185\u306e\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u304b\u3089\u30ea\u30b9\u30c8\u578b\u306e\u5909\u6570\u3068\u3057\u3066\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<br \/>\n2. FBScene\u306e\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u306b\u95a2\u3057\u3066\u306fhttp:\/\/docs.autodesk.com\/MB\/2014\/ENU\/MotionBuilder-SDK-Documentation\/index.html\u306eFBScene Class Reference\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u25a0Viewr\u30a6\u30a3\u30f3\u30c9\u30a6\u4e0a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u540d\u524d\u304b\u3089\u53d6\u5f97\u3059\u308b\u3002 [python] from pyfbsdk import FBFindModelByLabelName lSrchStr = &quot;search&#038;quot &#8230;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[27,25,237,26,28,18,240],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-motionbuilder","category-python","tag-get","tag-mb","tag-motionbuilder","tag-py","tag-pyfbsdk","tag-python-2","tag-240"],"_links":{"self":[{"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/humrevlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=72"}],"version-history":[{"count":12,"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":123,"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/posts\/72\/revisions\/123"}],"wp:attachment":[{"href":"https:\/\/humrevlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/humrevlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/humrevlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}