Datetime format – 顯示非西元的紀年方式
例如: 平成XX年
例如: 平成XX年
之前在這一篇有簡短提到過,沒想到事隔四五年又遇到要寫這樣程式的機會,順便整理一下吧。
記錄一下,免得每次都腦包忘了怎麼做…
Using javascript and XMLHTTPRequest to upload file/image.
Some tips & examples for flowplayer programming (javascript api)
http://stackoverflow.com/questions/478898/how-to-execute-a-command-and-get-output-of-command-within-c 用 popen (open pipe)執行 command, 並用 fgets 收結果。如果是在 windows 上,則是改用 _popen, _pclose #include <string> #include <iostream> #include <stdio.h> std::string exec(char* cmd) { FILE* pipe = popen(cmd, "r"); if (!pipe) return "ERROR"; char buffer[128]; std::string result = ""; while(!feof(pipe)) { if(fgets(buffer, 128, pipe) != NULL) result += buffer; } pclose(pipe); return result; }
In 3ds Max, users can import and export via UI. In batching process, we utilize scripting to largely reduce users’ interactions with calling “importFile” and “exportFile”. These two function calls provides “#noPrompt” option for “silently” processing. However, this “#noPrompt” mode is a bit different to “prompt” mode, “functionally”. We more focus on export in this […]
如果是一般的 range value 選取, 還可以用 scrollbar 之類的東西蒙混過去。但二維值就不行了,maxscript 的 default ui controllers 沒這樣的東西, 而 .net default windows form controllers 也沒這樣的東西, 所以只好自己動手做…
有些時候需要用到這樣的功能,把來自其他animation application的morpher set轉成另一組 controllers / morphers。這時候就需要弄個 mapping,然後就少不了參數設定… so..