{"id":5498,"date":"2010-12-10T23:44:55","date_gmt":"2010-12-10T14:44:55","guid":{"rendered":"http:\/\/leavebehind.iobb.net\/wordpress\/?p=5498"},"modified":"2010-12-10T23:44:55","modified_gmt":"2010-12-10T14:44:55","slug":"max2ae","status":"publish","type":"post","link":"http:\/\/leavebehind.mydns.jp\/wordpress\/2010\/12\/10\/max2ae\/","title":{"rendered":"MAX2AE"},"content":{"rendered":"<p>\u4e00\u6bb5\u843d\u3057\u305f\u3068\u601d\u3063\u305f\u3089\u3059\u3050\u306b\u6b21\u306e\u304a\u4ed5\u4e8b\u3002\u5927\u5fd9\u3057\u3063\uff01<\/p>\n<p>\u3055\u3066\u3001\u6b32\u3057\u3044\u306a\u301c\u3068\u601d\u3063\u305f\u3051\u3069$250\u3082\u3059\u308b\u3093\u3067\u3059\u306d\u3001MAX2AE\u3002\u9ad8\u3059\u304e\u3063\u3066\u3053\u3068\u3067\u3001\u81ea\u5206\u3067\u4f5c\u308b\u6e96\u5099\u3067\u3059\u3002\u63a2\u305b\u3070\u3069\u306a\u305f\u304b\u304c\u516c\u958b\u3055\u308c\u3066\u308b\u3093\u3067\u3057\u3087\u3046\u3051\u3069\u306d\u3002<\/p>\n<p>\u307e\u305a\u306f\u57fa\u672c\u7684\u306a\u3068\u3053\u308d\u304b\u3089\u4f4d\u7f6e\u306e\u53d6\u5f97\u3001\u4f8b\u3048\u307015\u30d5\u30ec\u30fc\u30e0\u76ee\u306epoint01\u306e\u4f4d\u7f6e\u3092\u77e5\u308a\u305f\u3051\u308c\u3070\u3001<\/p>\n<pre>at time 15 in coordsys world $point01.pos<\/pre>\n<p>\u3053\u308c\u3092\u30b9\u30bf\u30fc\u30c8\u304b\u3089\u30a8\u30f3\u30c9\u307e\u3067\u30eb\u30fc\u30d7\u3055\u305b\u308c\u3070\u3001\u30ce\u30fc\u30c9\u306e\u30ef\u30fc\u30eb\u30c9\u5ea7\u6a19\u306f\u7c21\u5358\u306b\u53d6\u5f97\u3067\u304d\u307e\u3059\u306d\u3002<\/p>\n<pre>\nfor i=animationRange.start to (animationRange.end - animationRange.start) do (\n\tprint (\"frame \" + (i as string)+ \":\" + (at time i in coordsys world $point01.pos) as string)\n)\n<\/pre>\n<p>\u30ab\u30e1\u30e9\u306e\u66f8\u304d\u51fa\u3057\u3067\u3059\u304c\u3001AfterEffects\u306e\u30ab\u30e1\u30e9\u306f\u30bf\u30fc\u30b2\u30c3\u30c8\u4ed8\u304d\u306a\u306e\u3067\u3001max\u306e\u30d5\u30ea\u30fc\u30ab\u30e1\u30e9\u3092\u66f8\u304d\u51fa\u3057\u305f\u3044\u5834\u5408\u3001\u30ab\u30e1\u30e9\u306eZ\u65b9\u5411\u3068\u300c\u30bf\u30fc\u30b2\u30c3\u30c8\u307e\u3067\u306e\u8ddd\u96e2\u300d\u3092\u4f7f\u3063\u3066\u9069\u5f53\u306a\u30bf\u30fc\u30b2\u30c3\u30c8\u4f4d\u7f6e\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002<\/p>\n<pre>if superClassOf selection[1] == camera do\n(\n\tcase classOf selection[1] of\n\t(\n\t\tFreecamera:\n\t\t\t(\n\t\t\t\ttd = selection[1].baseObject.targetDistance\n\t\t\t\ttartgetPos = [selection[1].dir.x * -1 * td + selection[1].pos.x , selection[1].dir.y* -1 * td + selection[1].pos.y, selection[1].dir.z * -1 * td + selection[1].pos.z ]\n\t\t\t)\n\n\t\tTargetcamera:\n\t\t\t(\n\t\t\t\ttartgetPos = selection[1].target.pos\n\t\t\t)\n\t)\n)<\/pre>\n<p>\u3042\u3068\u306f\u30ab\u30e1\u30e9\u306e<acronym title=\"Field Of View\">FOV<\/acronym>\u3084\u30ed\u30fc\u30eb\u89d2\u3092\u66f8\u304d\u51fa\u305b\u3070OK\u304b\u306a\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u30ec\u30f3\u30ba\u30d5\u30ec\u30a2\u30a8\u30d5\u30a7\u30af\u30c8\u7b49\u306e\u4f4d\u7f6e\u53c2\u7167\u7528\u306b\u3001\u30b9\u30af\u30ea\u30fc\u30f3\u5ea7\u6a19\u3092\u77e5\u308a\u305f\u3044\u5834\u5408\u306f\u3001<\/p>\n<pre>\np = selection[1].pos * viewport.getTM()\nscreen_topLeft = mapScreenToView [0,0] (p.z) [RenderWidth,RenderHeight]\nscreen_bottomRight = mapScreenToView [RenderWidth,RenderHeight] (p.z) [RenderWidth,RenderHeight]\nworld_size = screen_topLeft - screen_bottomRight\nx_aspect = RenderWidth\/(abs world_size.x)\ny_aspect = RenderHeight\/(abs world_size.y)\nscreenPos = point2 (x_aspect*(p.x - screen_topLeft.x)) (-(y_aspect*(p.y - screen_topLeft.y)))\n<\/pre>\n<p>\u3067\u3059\u3002\u30a2\u30af\u30c6\u30a3\u30d6\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u3068\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u30b5\u30a4\u30ba\u3092\u5143\u306b\u30d4\u30af\u30bb\u30eb\u3067\u7d50\u679c(screenPos)\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u6bb5\u843d\u3057\u305f\u3068\u601d\u3063\u305f\u3089\u3059\u3050\u306b\u6b21\u306e\u304a\u4ed5\u4e8b\u3002\u5927\u5fd9\u3057\u3063\uff01 \u3055\u3066\u3001\u6b32\u3057\u3044\u306a\u301c\u3068\u601d\u3063\u305f\u3051\u3069$250\u3082\u3059\u308b\u3093\u3067\u3059\u306d\u3001MAX2AE\u3002\u9ad8\u3059\u304e\u3063\u3066\u3053\u3068\u3067\u3001\u81ea\u5206\u3067\u4f5c\u308b\u6e96\u5099\u3067\u3059\u3002\u63a2\u305b\u3070\u3069\u306a\u305f\u304b\u304c\u516c\u958b\u3055\u308c\u3066\u308b\u3093\u3067\u3057\u3087\u3046\u3051\u3069\u306d\u3002 \u307e\u305a\u306f\u57fa\u672c\u7684\u306a\u3068\u3053 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3,8],"tags":[32,35,174],"class_list":["post-5498","post","type-post","status-publish","format-standard","hentry","category-automation","category-maxscript","tag-3dsmax","tag-aftereffects","tag-maxscript"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/s8YSE4-max2ae","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts\/5498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=5498"}],"version-history":[{"count":0,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts\/5498\/revisions"}],"wp:attachment":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=5498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=5498"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=5498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}