Hi, Robert I found another issue in code of LuaScriptEngine. Method LuaScriptEngine::pushValue(const osg::Matrixd& value) const has switched lua_pushnumber with lua_pushinteger. So if I sent matrix as input to method in lua script by input parameters, luascriptengine cast every value to int. Than I have in script numbers only 1 or 0. It's bad.
I try your example of creating value objects. It works when I return objects like Vec3f to C++ code. In output parameter is mentioned vector. But how to do operation with objects as Vec3f, Matrixd in lua csript ? Could you please write a small lua example how to create and add together 2 vectors? Or example with using simple matrix transformation (e.g osg::Matrix::rotate(osg::Vec3f) ) in Lua script? When I try this lua still claims , that called method (rotate) is nill. Thank you! Cheers, Martin ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=62796#62796 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

