Hi again guys,

I've tested the Python interface Jonne made for 2.0. I've been able to
load my own test module and run code with it, but I've had trouble
accessing any entities. This returns a correct SceneAPI object:

tundra.Scene()

This always returns 'None':

tundra.Scene().GetDefaultSceneRaw()

and of course has no entities then that I could access. JJ had written
in the todo comment that this method will be removed, anyway.

this does return a correct ScenePtr pointer

tundra.Scene().GetScene("<name_of_the scene>")

but if I try to add something like this

.GetEntityByName("FreeLookCamera")

it of course won't work, because a ScenePtr does not have such method.

Is there a way to access entities and their components via the
ScenePtr, so I could test whether I can make the new kinds of
Transform class members work with PythonQt?

And then there's this:

Object::connect: No such slot
PythonScript::PythonScriptModule::UpdatePythonModuleManager(float)

Which might be why def update does not seem to work? Or is it removed
from 2.0, or replaced by something else?

Anyway, Python code can be run, but the Python console does not show
in the view  menu, although it is defined in menu.js:

if (framework.GetModuleByName("PythonScript"))
        viewMenu.addAction("Python
Console").triggered.connect(OpenPythonConsole);

and seems to be loaded at startup:

PythonScriptModule:   >> Console() ConsoleAPI (QObject 0x03459250)




-- 
http://groups.google.com/group/realxtend
http://www.realxtend.org

Reply via email to