I'm a newbie to scripting in virtual worlds, but I was wondering what
makes the most sense in terms of scripting.

>From my limited understanding, the Iron Python scripts for REX live on
the server. The LSL scripts seem to me something you construct in an
editor on the viewer.

Does it make a difference if a script written in LSL by my avatar's
viewer gets information from a data source and uses it, or if I do
something similar as an Iron Python script? It just feels like the
Iron Python script would be accessible globally and I would assume
that scripts are local to the avatar associated with its creation. Of
course my understanding may be completely off.

Yuzo



On Apr 8, 12:58 pm, Toni Alatalo <[email protected]> wrote:
> Jeroen van Veen wrote:
> > if other python libs can be imported, maybe it can be done with pycurl?
>
> basics are also in the stdlib,http://docs.python.org/library/urllib.html
>
> filehandle = urllib.urlopen(some_url, proxies=proxies)
>
> i guess the way to use curl within .net (which the server, being
> opensim, is) would be via some .net wrapper, dunno, if you needed that
> for some reason.
>
> and like said in the other post, it may be also a good idea to do what
> opensim does on the c# side, what you would do in an opensim region
> module perhaps (of course rexscript can also expose it by wrapping
> something itself, or using what is exposed for LSL (which are what
> rexscript usually uses)).
>
> > Jeroen
>
> ~Toni
>
> > On Wednesday 08 April 2009 18:55:13 Jani Pirkola wrote:
>
> >> Toni,
> >> isn't it possible to send http get requests from python directly? Or at
> >> least open tcp socket and write the get request there? What do I need to do
> >> to enable needed libraries, ie does python in rex work as it was any python
> >> environment?
>
> >> Jani
>
> >> 2009/4/8 Toni Alatalo <[email protected]>
>
> >>> zeshu wrote:
>
> >>>> I have some data on a php web page.Now i need that data in realXtend.i
> >>>> checked two methods in LSL one is httprequest and XML-RPC.How i can
> >>>> use these functions in Python.
>
> >>> are they exposed in the rexscript system? basically it always calls the
> >>> opensim scripting api,
> >>> i.e. is same as the lsl impls.
>
> >>> i think you can also use any .net library that your system has installed
> >>> on your server,
> >>> similarily to how use in it c# but just within ironpython (which
> >>> rexscript uses).
>
> >>> ~Toni

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

Reply via email to