Ok gentlemen,

I managed to open the python console in 2.0, and this command

print
tundra._pythonscriptmodule.GetActiveCamera().GetComponent("EC_Placeable")

returns PythonScriptModule: ComponentPtr (C++ Object 0x179DF428) .
Hooray! And this

 print tundra._pythonscriptmodule.GetActiveCamera().Name()  produces

FreeLookCamera

Great.

But then if I try to add .Transform() or .Position() or .transform
or .transform.position after that, I always get 'Error:
PythonScriptModule: ComponentPtr has no attribute named ...' The
EC_Placeable class seems to have the position and orientation getters
and setters as public slots, and the EC_Placeable component in
FreeLookCamera entity has the Transform attribute if I open it in View-
Scene. Maybe there is just a new way to access it?

And after reading the PythonScriptModule C++ code I found out that the
Circuits Module Manager part is commented out, and won't compile if I
include it. But I would need the old 'def update' or something like
that, so that code would be run every time OgreRenderingModule
updates.

Well, this is progress. Nice weekend and holidays to everybody.




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

Reply via email to