Thanks a lot for the hints. The documentation site is familiar to me;
I  can find my way in the 1.* docs, but with 2.0, some initial
guidance was necessary.

On Jul 29, 4:25 pm, Jonne Nauha <jo...@adminotech.com> wrote:
> We removed circuits as its no longer needed. It was used to relay the old
> even system data to python and to pump the updates in py. But now everything
> is signals that you can access without circuits. Here is how to get main
> loop updates to python code:
>
> tundra.Frame().connect("Updated(float)", self.update)
>
> def update(self, frametime):
>    print frametime
>
> Please read the documentation for all the *API classes you find, they are
> all exposed to python and js now. If you want to know what you can do start
> reading the documentation :)http://realxtend.org/doxygen
>
> Best regards,
> Jonne Nauha
> Adminotech developer
>
>
>
>
>
>
>
> On Fri, Jul 29, 2011 at 4:20 PM, Jonne Nauha <jo...@adminotech.com> wrote:
> > tundra._pythonscriptmodule.GetActiveCamera().GetComponentRaw("EC_Placeable" 
> > )
> > would do the trick, without raw its a boost::shated_ptr<IComponent> and
> > python has no idea what that is.
>
> > Here is the code you are actually calling
> >https://github.com/realXtend/naali/blob/tundra2/src/Application/Pytho...we
> > will fill those classes with more nice stuff. Like so you could do ent.mesh
> > to get the mesh component, I think its doable with a wrapper factory i have
> > been talking here before.
>
> > Best regards,
> > Jonne Nauha
> > Adminotech developer
>
> > On Fri, Jul 29, 2011 at 3:50 PM, ilikia <t...@ee.oulu.fi> wrote:
>
> >> 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

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

Reply via email to