{"id":359,"date":"2013-08-06T00:09:33","date_gmt":"2013-08-05T15:09:33","guid":{"rendered":"http:\/\/humrevlife.com\/?p=359"},"modified":"2013-08-06T21:03:50","modified_gmt":"2013-08-06T12:03:50","slug":"mwp-motionbuilder-with-python%e3%80%80%e3%81%9d%e3%81%ae11%e3%80%80%e3%80%8cfbobject%e3%81%b8%e3%81%aeplot%e6%96%b9%e6%b3%95%e3%80%8d","status":"publish","type":"post","link":"https:\/\/humrevlife.com\/?p=359","title":{"rendered":"MWP (Motionbuilder With Python)\u3000\u305d\u306e11\u3000\u300cFBObject\u3078\u306eplot\u65b9\u6cd5\u300d"},"content":{"rendered":"<p>\u4eca\u56de\u306f\u5b9f\u8df5\u7684\u306a\u9805\u76ee\u3068\u3057\u3066FBObject\u3078\u306eplot\u65b9\u6cd5\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>\u610f\u5916\u306b\u65e5\u672c\u8a9e\u30da\u30fc\u30b8\u3067\u8aac\u660e\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3073\u3063\u304f\u308a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>plot\u3068\u4e00\u8a00\u3067\u8a00\u3063\u3066\u3082\u591a\u5c90\u306b\u308f\u305f\u308a\u307e\u3059\u304c\u4eca\u56de\u306f\u305d\u306e\u4e2d\u3067\u3082\u4f7f\u7528\u983b\u5ea6\u306e\u9ad8\u305d\u3046\u306a<\/p>\n<p><strong>PlotTakeOnSelectedProperties<\/strong><\/p>\n<p>\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/humrevlife.com\/wp-content\/uploads\/2013\/08\/11_plot.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-361\" alt=\"11_plot\" src=\"http:\/\/humrevlife.com\/wp-content\/uploads\/2013\/08\/11_plot.jpg\" width=\"244\" height=\"152\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u307e\u305a\u3001plot\u306b\u7d76\u5bfe\u306b\u5fc5\u8981\u306a\u30af\u30e9\u30b9\u306f\u305f\u3063\u305f2\u3064<\/p>\n<p><span style=\"font-size: 20px;\"><strong>\u25a0\u7d76\u5bfe\u306b\u5fc5\u8981\u306a\u30af\u30e9\u30b9<\/strong><\/span><\/p>\n<p>[python]<br \/>\nFBSystem<br \/>\nFBPlotOptions<br \/>\n[\/python]<\/p>\n<p>FBSystem\u30af\u30e9\u30b9\u306b\u306f<\/p>\n<p><strong>CurrentTake<\/strong><\/p>\n<p>\u3068\u3044\u3046Attribute\u304c\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u3001\u3053\u306eAttribute\u304c\u6301\u3064\u3001<\/p>\n<p><strong>PlotTakeOnSelectedProperties(FBPlotOptions)<\/strong><\/p>\n<p>\u3092\u4f7f\u3063\u3066plot\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5f15\u6570\u306b\u306f<strong>FBPlotOptions<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306eFBPlotOptions\u306e\u8a2d\u5b9a\u304c\u624b\u52d5\u3067plot\u3059\u308b\u6642\u306eplot\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5185\u5bb9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/humrevlife.com\/wp-content\/uploads\/2013\/08\/11_plotOptions.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-362\" alt=\"11_plotOptions\" src=\"http:\/\/humrevlife.com\/wp-content\/uploads\/2013\/08\/11_plotOptions-170x300.jpg\" width=\"170\" height=\"300\" srcset=\"https:\/\/humrevlife.com\/wp-content\/uploads\/2013\/08\/11_plotOptions-170x300.jpg 170w, https:\/\/humrevlife.com\/wp-content\/uploads\/2013\/08\/11_plotOptions.jpg 245w\" sizes=\"auto, (max-width: 170px) 100vw, 170px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u5b9f\u969b\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u52d5\u304b\u3059\u8981\u6240\u3060\u3051\u5f15\u304d\u629c\u304f\u3068\u3053\u3093\u306a\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><span style=\"font-size: 20px;\"> \u25a0\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u9aa8\u683c<\/span><\/p>\n<p>[python]<br \/>\nfrom pyfbsdk import FBSystem,FBPlotOptions<\/p>\n<p>## plot\u3059\u308bObject\u3092\u9078\u629e\u3059\u308b<\/p>\n<p>lOptions = FBPlotOptions()<\/p>\n<p>## plotOption\u3092\u8a2d\u5b9a\u3059\u308b<\/p>\n<p>FBSystem().CurrentTake.PlotTakeOnSelectedProperties( lOptions )<br \/>\n[\/python]<\/p>\n<p>\u3059\u3067\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u9078\u629e\u3057\u3066\u3042\u308b\u5834\u5408\u306f 3\u884c\u76ee\u306f\u7121\u8996\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u305d\u306e\u4ed6\u7d30\u304b\u3044\u8a2d\u5b9a\u3092\u304a\u671b\u307f\u306e\u65b9\u306f\u3053\u308c\u3089\u3082\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><span style=\"font-size: 20px;\"><strong>\u25a0\u305d\u306e\u4ed6\u7d30\u304b\u3044\u8a2d\u5b9a\u306b\u5fc5\u8981\u306a\u30af\u30e9\u30b9<\/strong><\/span><\/p>\n<p>[python]<br \/>\nFBRotationFilter        #RotationFilter\u306e\u7a2e\u985e\u3092\u6c7a\u3081\u308b\u305f\u3081<br \/>\nFBTime                  #PlotPeriod\u306b\u4ee3\u5165\u3059\u308b\u305f\u3081<br \/>\nFBTimeMode              #plot\u3059\u308b\u6642\u306efps\u3092\u6c7a\u3081\u308b\u305f\u3081<br \/>\n[\/python]<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 20px;\"><strong>\u25a0\u65e2\u5b58\u306e\u30ad\u30e5\u30fc\u30d6\u306bplot\u3059\u308b\u30b5\u30f3\u30d7\u30eb<\/strong><\/span><\/p>\n<p>[python]<br \/>\nfrom pyfbsdk import FBSystem,FBPlotOptions,FBFindModelByLabelName,FBRotationFilter,FBTime,FBTimeMode<\/p>\n<p>lCube = FBFindModelByLabelName(&amp;quot;Cube&amp;quot;)<br \/>\nlFPS = FBTime(0,0,0,1,0, FBTimeMode().kFBTimeMode60Frames)<br \/>\nlCube.Selected = True<\/p>\n<p>lOptions = FBPlotOptions()<\/p>\n<p>lOptions.PlotLockedProperties = False<br \/>\nlOptions.ConstantKeyReducerKeepOneKey = True<br \/>\nlOptions.PlotAllTakes = False<br \/>\nlOptions.PlotOnFrame = True<br \/>\nlOptions.PlotPeriod = lFPS<br \/>\nlOptions.PlotTranslationOnRootOnly = True<br \/>\nlOptions.PreciseTimeDiscontinuities = False<br \/>\nlOptions.RotationFilterToApply = FBRotationFilter.kFBRotationFilterUnroll<br \/>\nlOptions.UseConstantKeyReducer = False<\/p>\n<p>FBSystem().CurrentTake.PlotTakeOnSelectedProperties( lOptions )<br \/>\n[\/python]<\/p>\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u306a\u3044\u3068\u5b9f\u884c\u3055\u308c\u3066\u3082\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30ad\u30fc\u306f\u6253\u305f\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u3061\u306a\u307f\u306b\u8c46\u77e5\u8b58\u3068\u3057\u3066<span style=\"color: #ff0000;\">kFBTimeModeCustom\u306f<\/span>\u3044\u304f\u3089\u597d\u304d\u306a\u5024\u3092\u5165\u529b\u3057\u3066\u3082<\/p>\n<p><span style=\"color: #ff0000;\">FBTimeMode\u306eAttribute\u306e\u3044\u305a\u308c\u304b\u306e\u5024\u306b\u4e38\u3081\u8fbc\u307e\u308c\u307e\u3059\u3002<\/span><\/p>\n<p>custum\u306e\u5b58\u5728\u4fa1\u5024\u306f\uff1f\u3063\u3066\u601d\u308f\u305a\u805e\u304d\u305f\u304f\u306a\u308a\u307e\u3059\u3088\u306d\uff08\uff3e\uff3e\uff1b<\/p>\n<p><span style=\"font-size: 20px;\"> <strong>\u25a0FBTimeMode\u306eAttribute\u4e00\u89a7<\/strong><\/span><\/p>\n<p>[python]<br \/>\nobject \tkFBTimeModeDefault<br \/>\nobject \tkFBTimeMode1000Frames<br \/>\nobject \tkFBTimeMode120Frames<br \/>\nobject \tkFBTimeMode100Frames<br \/>\nobject \tkFBTimeMode96Frames<br \/>\nobject \tkFBTimeMode72Frames<br \/>\nobject \tkFBTimeMode60Frames<br \/>\nobject \tkFBTimeMode5994Frames<br \/>\nobject \tkFBTimeMode50Frames<br \/>\nobject \tkFBTimeMode48Frames<br \/>\nobject \tkFBTimeMode30Frames<br \/>\nobject \tkFBTimeMode2997Frames_Drop<br \/>\nobject \tkFBTimeMode2997Frames<br \/>\nobject \tkFBTimeMode25Frames<br \/>\nobject \tkFBTimeMode24Frames<br \/>\nobject \tkFBTimeMode23976Frames<br \/>\nobject \tkFBTimeModeCustom<br \/>\n[\/python]<\/p>\n<p>\u203b\u8ffd\u8a18<\/p>\n<p>\u3055\u308a\u6c17\u306a\u304f\u5f15\u6570\u304c\u5909\u308f\u3063\u3066\u3044\u305f\u306e\u3067\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>MB2014\u2026PlotTakeOnSelectedProperties(FBPlotOptions)<\/p>\n<p>MB2012\u2026PlotTakeOnSelectedProperties(FBTime)<\/p>\n<p>\u6ce8\u610f\u70b9\u3068\u3057\u3066MB2012\u4ee5\u524d\u3067\u306f<\/p>\n<p>PlotTakeOnSelectedProperties\u3060\u3051\u3067plotOption\u306e\u8a2d\u5b9a\u3092\u53cd\u6620\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>FBPlotOptions\u304c\u5f15\u6570\u306b\u306a\u3063\u3066\u3044\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u4e00\u5ea6plot\u3057\u3066\u3042\u3052\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4eca\u56de\u306f\u5b9f\u8df5\u7684\u306a\u9805\u76ee\u3068\u3057\u3066FBObject\u3078\u306eplot\u65b9\u6cd5\u3092\u66f8\u304d\u307e\u3059\u3002 \u610f\u5916\u306b\u65e5\u672c\u8a9e\u30da\u30fc\u30b8\u3067\u8aac\u660e\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3073\u3063\u304f\u308a\u3057\u3066\u3044\u307e\u3059\u3002 plot\u3068\u4e00\u8a00\u3067\u8a00\u3063\u3066\u3082\u591a\u5c90\u306b\u308f\u305f\u308a\u307e\u3059\u304c\u4eca\u56de\u306f\u305d\u306e\u4e2d\u3067\u3082\u4f7f\u7528\u983b\u5ea6\u306e\u9ad8\u305d\u3046\u306a PlotT &#8230;","protected":false},"author":1,"featured_media":361,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[40,84,83,85,86,87,25,237,81,82,26,28,18],"class_list":["post-359","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-motionbuilder","category-python","tag-fb","tag-fbfindmodelbylabelname","tag-fbplotoptions","tag-fbrotationfilter","tag-fbtime","tag-fbtimemode","tag-mb","tag-motionbuilder","tag-plot","tag-plottakeonselectedproperties","tag-py","tag-pyfbsdk","tag-python-2"],"_links":{"self":[{"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/posts\/359","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=359"}],"version-history":[{"count":12,"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/posts\/359\/revisions"}],"predecessor-version":[{"id":374,"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/posts\/359\/revisions\/374"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/humrevlife.com\/index.php?rest_route=\/wp\/v2\/media\/361"}],"wp:attachment":[{"href":"https:\/\/humrevlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/humrevlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/humrevlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}