Hi all,
How I can work with Element of Scene  in Python?
I can call for example
el=tundra.Scene().MainCameraScene().GetEntityByName(entityName)
But I can't use obtained element el at all - no attributes.
I understand that el is EntityPtr, not Entity as for example method
GetEntityRaw(id) return.
How i can convert EntityPtr to Entity in Python?
And method GetEntityByNameRaw()  is obsolete now?

If I obtain all entities via
tundra.Scene().MainCameraScene().GetAllEntities(),  how i can iterate
this list in python for obtain entity Id by name?


And example of plugin "apitests.py" does not work:
PythonScript: **** Python ApiRunner.testScene() failed ****
PythonScript: SceneAPI has no attribute named 'GetDefaultSceneRaw'
PythonScript: -- Testing Renderer
PythonScript: >> Renderer() OgreRenderer::Renderer (QObject
0x0AFE7FB0)
PythonScript: **** Python ApiRunner.testRenderer() failed ****
PythonScript: OgreRenderer::Renderer has no attribute named
'GetWindowWidth'
PythonScript: -- Testing Python Helper
PythonScript: >> Helper().CreateInputContext() InputContext (QObject
0x15DB55DC)
PythonScript: ***** Python ApiRunner done *********
PythonScript: Loading scripts from startup config
PythonScript: ** No scripts in config

Thank you.

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

Reply via email to