{"id":2498,"date":"2023-02-11T23:17:20","date_gmt":"2023-02-11T14:17:20","guid":{"rendered":"http:\/\/oreoreki.gotdns.ch\/?p=2498"},"modified":"2023-02-12T00:46:28","modified_gmt":"2023-02-11T15:46:28","slug":"post-2498","status":"publish","type":"post","link":"http:\/\/oreoreki.gotdns.ch\/?p=2498","title":{"rendered":"AviUtl\u306e\u30b7\u30fc\u30f3\u30c1\u30a7\u30f3\u30b8\u3092\u4e00\u62ec\u8a2d\u5b9a\u3010\u3086\u3063\u304f\u308a\u89e3\u8aac\u3011"},"content":{"rendered":"<p><span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"750\" height=\"422\" src=\"https:\/\/www.youtube.com\/embed\/C9Wu6KasyJ4?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=ja&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span><\/p>\n<p><span>AviUtl \u306e\u30b7\u30fc\u30f3\u30c1\u30a7\u30f3\u30b8\u3092\u4e00\u62ec\u8a2d\u5b9a\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/span><br \/>\n<span class=\"bold-red\">\u3053\u306e\u52d5\u753b\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306fWindows11\u3067\u4f5c\u6210\u3057\u3066\u307e\u3059\u3002<br \/>\n<\/span><\/p>\n<h2><\/h2>\n<p>MS-DOS\u30d0\u30c3\u30c1\u306a\u306e\u3067add_scene_change.bat\u3068\u3044\u3046\u540d\u524d\u3067\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"prism line-numbers lang-ts\" data-lang=\"TypeScript\"><code>@if(0)==(0) ECHO OFF\r\n:\u30ab\u30ec\u30f3\u30c8DIR\u3092\u3053\u306e\u30d0\u30c3\u30c1\u304c\u7f6e\u304b\u308c\u305fDIR\u306b\u5909\u66f4\r\ncd \/d %~dp0\r\n%SystemRoot%\\SysWOW64\\cscript.exe \/\/nologo \/\/E:JScript \"%~f0\" %*\r\nGOTO :EOF\r\n@end\r\n\r\n\/\/  \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\r\n\/\/\u3000\u5165\u529bexo\u30d5\u30a1\u30a4\u30eb(\u62e1\u5f35\u5b50\u306f\u5c0f\u6587\u5b57\u3067exo)\r\nexofilename=\"test.exo\"\r\n\r\n\/\/\u753b\u50cf\u304c\u3042\u308b\u30ec\u30a4\u30e4\u30fc\r\nlayer1=2\r\n\r\n\/\/\u30b7\u30fc\u30f3\u30c1\u30a7\u30f3\u30b8\u3092\u3064\u3051\u308b\u30ec\u30a4\u30e4\u30fc\r\nlayer2=4\r\n\r\n\r\nvar objShell = WScript.CreateObject(\"WScript.shell\");\r\nvar fso      = WScript.CreateObject(\"Scripting.FileSystemObject\");\r\n\r\n\r\nvar ifile = fso.OpenTextFile( fso.BuildPath(objShell.CurrentDirectory,exofilename) );\r\nvar ofile = fso.OpenTextFile( fso.BuildPath(objShell.CurrentDirectory,exofilename.replace(\".exo\",\"_update.exo\")),2,true );\r\nvar str = ifile.ReadAll();\r\n\r\n\/\/  \u5165\u529b\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u308b\r\nifile.Close();\r\n\/\/  \u51fa\u529b\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u51fa\u3057\r\nofile.Write(str);\r\n\r\n\/\/\u30b7\u30fc\u30f3\u30c1\u30a7\u30f3\u30b8\u3092\u633f\u5165\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u4f4d\u7f6e\u3092\u683c\u7d0d\u3059\u308b\u914d\u5217\r\nvar cc_point = [];\r\n\/\/[\u6587\u5b57\u5217]\u3067\u59cb\u307e\u308a\u6b21\u306e[\u304c\u6765\u308b\u307e\u3067\u306e\u6587\u5b57\u5217\u3092\u53d6\u5f97\r\n\/\/var res1 = str.match(\/^\\[.*\\][^\\[]*\/mg);\r\nvar res1 = str.match(\/^\\[.*(?:\\n(?!\\[).*)*\\n*\/gm);\r\nfor (i = 0; i < res1.length; i++)\r\n{\r\n\t\/\/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6539\u884c\u30b3\u30fc\u30c9\u3067\u5206\u5272\r\n\tres2 = res1[i].split(\"\\n\")\r\n\tvar obj = {};\r\n\tfor (j = 0; j < res2.length; j++) {\r\n\t\tif (res2[j].length>2) {\r\n\t\t\t\/\/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u60c5\u5831\u3092\u9023\u60f3\u914d\u5217\u306b\u3059\u308b\r\n\t\t\tres3 = res2[j].split(\"=\")\r\n\t\t\tif (res3.length==2) {\r\n\t\t\t\tobj[res3[0]]=res3[1]\r\n\t\t\t}\r\n\t\t\tif (res3.length==1) {\r\n\t\t\t\tres4 = res2[j].match(\/\\[(.*)\\]\/)\r\n\t\t\t\tif (res4.length > 0) {\r\n\t\t\t\t\t\/\/[\u6570\u5b57]\u306e\u6570\u5b57\u3092\u53d6\u3063\u3066\u304f\u308b\r\n\t\t\t\t\tx_idx=Number(res4[1])\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tif (obj[\"layer\"] == layer1 ) {\r\n\r\n\t\tx_len=obj[\"end\"] - obj[\"start\"]\r\n\r\n\t\t\/\/3\u79d2\u4ee5\u4e0a\u306a\u3089\u30b7\u30fc\u30f3\u30c1\u30a7\u30f3\u30b8\u3092\u8ffd\u52a0\u3059\u308b\r\n\t\tif (obj[\"start\"]>1 && x_len > 3*60) {\r\n\t\t\tWScript.Echo( res1[i] );\r\n\t\t\tcc_point.push(obj[\"start\"]+0)\r\n\t\t}\r\n\t}\r\n}\r\n\r\n\r\nfor (i = 0; i < cc_point.length; i++) {\r\n\tx_idx = parseInt(x_idx) + 1\r\n\t\/*\t\r\n\t\u4ed8\u3051\u52a0\u3048\u308b\u30b7\u30fc\u30f3\u30c1\u30a7\u30f3\u30b8\u306e\u30b5\u30f3\u30d7\u30eb\r\n\r\n\t[106]\r\n\tstart=1005\r\n\tend=1064\r\n\tlayer=2\r\n\t[106.0]\r\n\t_name=\u30b7\u30fc\u30f3\u30c1\u30a7\u30f3\u30b8\r\n\t\u8abf\u6574=0.00\r\n\ttrack1=0.00\r\n\t\u53cd\u8ee2=0\r\n\tcheck0=0\r\n\ttype=0\r\n\tfilter=0\r\n\tname=\r\n\tparam=*\r\n\t*\/\t\r\n\r\n\tx_start=parseInt(cc_point[i])\r\n\t\r\n\tofile.Writeline(\"[\"+x_idx+\"]\");\r\n\tofile.Writeline(\"start=\"+x_start);\r\n\tofile.Writeline(\"end=\"+(x_start+60));\r\n\tofile.Writeline(\"layer=\" + layer2);\r\n\r\n\tofile.Writeline(\"[\"+x_idx+\".0]\");\r\n\tofile.Writeline(\"_name=\u30b7\u30fc\u30f3\u30c1\u30a7\u30f3\u30b8\");\r\n\tofile.Writeline(\"\u8abf\u6574=0.00\");\r\n\tofile.Writeline(\"track1=0.00\");\r\n\tofile.Writeline(\"\u53cd\u8ee2=0\");\r\n\tofile.Writeline(\"check0=0\");\r\n\tofile.Writeline(\"type=0\");\r\n\tofile.Writeline(\"filter=0\");\r\n\tofile.Writeline(\"name=\");\r\n\tofile.Writeline(\"param=*\");\r\n\t\r\n}\r\n\r\nofile.Close()\r\nWScript.Echo( \"Saved \", fso.BuildPath(objShell.CurrentDirectory,exofilename.replace(\".exo\",\"_update.exo\")) );\r\n\r\n<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>AviUtl \u306e\u30b7\u30fc\u30f3\u30c1\u30a7\u30f3\u30b8\u3092\u4e00\u62ec\u8a2d\u5b9a\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002 \u3053\u306e\u52d5\u753b\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306fWi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2506,"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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[9],"tags":[],"class_list":["post-2498","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wsh-jscript"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"http:\/\/oreoreki.gotdns.ch\/wp-content\/uploads\/sites\/2\/2023\/02\/aviutl-3.jpg","jetpack_shortlink":"https:\/\/wp.me\/p9WqRX-Ei","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/oreoreki.gotdns.ch\/index.php?rest_route=\/wp\/v2\/posts\/2498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/oreoreki.gotdns.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/oreoreki.gotdns.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/oreoreki.gotdns.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/oreoreki.gotdns.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2498"}],"version-history":[{"count":4,"href":"http:\/\/oreoreki.gotdns.ch\/index.php?rest_route=\/wp\/v2\/posts\/2498\/revisions"}],"predecessor-version":[{"id":2503,"href":"http:\/\/oreoreki.gotdns.ch\/index.php?rest_route=\/wp\/v2\/posts\/2498\/revisions\/2503"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/oreoreki.gotdns.ch\/index.php?rest_route=\/wp\/v2\/media\/2506"}],"wp:attachment":[{"href":"http:\/\/oreoreki.gotdns.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/oreoreki.gotdns.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2498"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/oreoreki.gotdns.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}