2005-11-01から1ヶ月間の記事一覧

lscriptでプラグインを操作する

選択されているメッシュに追加されているカスタムオブジェクトを調べる @warnings generic { mesh = Mesh(); stat = mesh.server(SERVER_CUSTOMOBJ_H); file = File("c:\\test.txt","w"); file.writeln("custom object count: ", stat.size()); for(i=1;i<=s…

LScriptでモーションパスの長さを調べる(Layout用)

@version 2.5 @script generic @warnings generic { scn = Scene(); sel = scn.getSelect(); selc = sel.count(); for(i=1; i<=selc;i++){ curChannel = sel[i].firstChannel(); distance = 0; for (j = 1; j

luaのグローバル変数・関数を調べる

テーブルをたどるのがうまく出来ない test.c #include "lua.h" #include "lualib.h" #include "lauxlib.h" void check_table(lua_State *L, int index, int indent) { lua_pushnil(L); while (lua_next(L, index) != 0) { printf("%s - %s ", lua_tostring(L…

luaのスタックを調べる

#include "lua.h" #include "lualib.h" #include "lauxlib.h" void check_stack(lua_State *L) { int i; for (i = 0; i < lua_gettop(L); i++) { switch (lua_type(L, i)) { case LUA_TNIL: printf("stack[%d]: nil\n", i); break; case LUA_TNUMBER: printf…

luaとcの変数のやり取り

test.c #include "lua.h" #include "lualib.h" #include "lauxlib.h" #define getNumber(xxxL, xxxVarName, xxxVar) \ lua_pushstring( xxxL , xxxVarName ); \ lua_gettable( xxxL , LUA_GLOBALSINDEX ); \ xxxVar = lua_tonumber( xxxL , -1 ); \ lua_pop(…

xyzzy fortune

(defun fortune-cookie () "fortune cookie" (interactive) (let ((in)) (with-open-stream (stream (connect "www.new-year.co.uk" 80)) (format stream "GET /chinese/cookie.cfm HTTP/1.1\nHost: www.new-year.co.uk:80\n\n") (set-stream-encoding strea…

GNUの拡張言語

GNU's programming and extension language — GNU Guile

lua

spe96jp

ECMAScript(Javascript)を、cとかDelphiのアプリから利用することも出来るらしい

http://www.mozilla.org/js/spidermonkey/apidoc/jsguide.html http://www.cs.unm.edu/~cello/jsgen/ DMonkey プロジェクト日本語トップページ - OSDN

tclからcの関数を呼ぶ(mingw)

http://www.hyuki.com/yukiwiki/wiki.cgi?Tcl How to embed Tcl in C applications C program that invokes a Tcl Interpreter - Tcl example mingw用のライブラリをダウンロード Obsolete pages Windows 95/98/2000/NT/XP: MinGW ソースを準備 test.c #incl…