{"id":3314,"date":"2009-09-12T23:15:20","date_gmt":"2009-09-12T14:15:20","guid":{"rendered":"http:\/\/leavebehind.iobb.net\/wordpress\/?p=3314"},"modified":"2009-09-12T23:15:20","modified_gmt":"2009-09-12T14:15:20","slug":"pre-render-call-back-%e5%87%ba%e6%9d%a5%e3%81%9a","status":"publish","type":"post","link":"http:\/\/leavebehind.mydns.jp\/wordpress\/2009\/09\/12\/pre-render-call-back-%e5%87%ba%e6%9d%a5%e3%81%9a\/","title":{"rendered":"Pre-Render Call back \u51fa\u6765\u305a"},"content":{"rendered":"<p>\u5148\u65e5\u306e<a href=\"http:\/\/leavebehind.iobb.net\/wordpress\/archives\/3226\">faceBBox.ms<\/a>\u3092\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306b\u767b\u9332\u3057\u3001\u30d5\u30ec\u30fc\u30e0\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u5ea6\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3057\u3066\u3044\u304f\u3088\u3046\u306b\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u5bfe\u8c61\u306b\u306a\u308b\u30a4\u30d9\u30f3\u30c8\u306f\u3044\u3063\u305f\u3044\u3069\u308c\u306a\u3093\u3067\u3057\u3087\u3046\uff1f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/leavebehind.iobb.net\/wordpress\/wp-content\/uploads\/2009\/09\/PreRenderCallBack-malfunction.jpg\" alt=\"PreRenderCallBack-malfunction\" title=\"PreRenderCallBack-malfunction\" width=\"640\" height=\"366\" class=\"aligncenter size-full wp-image-3328\" \/><br \/>\n\u4e0b\u306e\u3088\u3046\u306b#preRender\u30a4\u30d9\u30f3\u30c8\u306b\u767b\u9332\u3059\u308b\u3068\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u958b\u59cb\u6642\u306e\u4e00\u5ea6\u3063\u304d\u308a\u306e\u5b9f\u884c\u306b\u306a\u308a\u307e\u3059\u3002\u30d5\u30ec\u30fc\u30e0\u6bce\u306b\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<pre>callbacks.addscript #preRender fileName:\"D:\\\\faceBBoxForAnim-Pre.ms\" id:#BBox<\/pre>\n<p>#preRenderFrame\u306f\u30e1\u30c3\u30b7\u30e5\u8a55\u4fa1\u5f8c\u306b\u547c\u3073\u51fa\u3055\u308c\u308b\u306e\u3067\u305d\u3053\u306b\u65b0\u305f\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u914d\u7f6e\u3057\u3066\u3082\u7121\u8996\u3055\u308c\u3066\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>#preRenderEval\u3082\u540c\u3058\u304f\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u306b\u306f\u65b0\u898f\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u914d\u7f6e\u3092\u3057\u3066\u304f\u308c\u307e\u3059\u304c\u30ec\u30f3\u30c0\u30e9\u30fc\u306b\u306f\u4f1d\u308f\u3089\u305a\u3001\u3001\u3001<\/p>\n<p>registerTimeCallback\u3067\u30bf\u30a4\u30e0\u30b9\u30e9\u30a4\u30c0\u3092\u52d5\u304b\u3059\u305f\u3073\u306b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3063\u3066\u624b\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u91cd\u304f\u306a\u308a\u307e\u3059\u3057\u305d\u3082\u305d\u3082\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u767b\u9332\u3067\u304d\u306a\u3044\u3093\u3067\u3059\u306d\u3002<\/p>\n<p>\u5206\u304b\u3089\u3093\u3001\u3001\u3001<br \/>\n<!--more--><\/p>\n<pre>-- Delete last frame BBoxes\ndelete $BBox*\n\n-- Freeze Node ,name \"Sphere01\" to TriMesh\nfreezeMesh = snapshotasmesh $Sphere01\n\n-- Main\nnumOfFaces = getNumFaces freezeMesh\nfor faceIndex = 1 to numOfFaces do\n(\n\tvertexIndexPt3 = getFace freezeMesh faceIndex\n\t\n\tvtx1 = getVert freezeMesh vertexIndexPt3.x\n\tvtx2 = getVert freezeMesh vertexIndexPt3.y\n\tvtx3 = getVert freezeMesh vertexIndexPt3.z\n\t\n\txArray = #(vtx1.x , vtx2.x , vtx3.x)\n\tyArray = #(vtx1.y , vtx2.y , vtx3.y)\n\tzArray = #(vtx1.z , vtx2.z , vtx3.z)\n\t\n\tBBoxMax = point3 (amax xArray) (amax yArray) (amax zArray)\n\tBBoxMin = point3 (amin xArray) (amin yArray) (amin zArray)\n\t\n\tmyBox = box name:(\"BBox\"+(faceIndex as String)) \\\n\twidth:(BBoxMax.x - BBoxMin.x) \\\n\tlength:(BBoxMax.y - BBoxMin.y) \\\n\theight:(BBoxMax.z - BBoxMin.z)\n\t\n\tfaceCenter = meshop.getFaceCenter freezeMesh faceIndex\n\tmyBox.center = faceCenter\n\t\n\tformat \"face:\\t%\/%\\n\" faceIndex numOfFaces\n)\ndelete freezeMesh\n<\/pre>\n<p>\u3061\u306a\u306b\u307f\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u304b\u3089\u306f\u305a\u3059\u3068\u304d\u306fID\u6307\u5b9a\u3067\u3001<\/p>\n<pre>callbacks.removescripts id:#BBox<\/pre>\n<p>\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u306efaceBBox.ms\u3092\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306b\u767b\u9332\u3057\u3001\u30d5\u30ec\u30fc\u30e0\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u5ea6\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3057\u3066\u3044\u304f\u3088\u3046\u306b\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u5bfe\u8c61\u306b\u306a\u308b\u30a4\u30d9\u30f3\u30c8\u306f\u3044\u3063\u305f\u3044\u3069\u308c\u306a\u3093\u3067\u3057\u3087\u3046\uff1f \u4e0b\u306e\u3088\u3046\u306b#preRende [&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":[18],"tags":[32,174],"class_list":["post-3314","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-3dsmax","tag-maxscript"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p8YSE4-Rs","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts\/3314","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=3314"}],"version-history":[{"count":0,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/posts\/3314\/revisions"}],"wp:attachment":[{"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=3314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=3314"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/leavebehind.mydns.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=3314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}