[Opensim-users] OpenSim Features: Script Association and Mesh Import

Justin Clark-Casey jjustincc at googlemail.com
Sat Sep 24 01:25:37 UTC 2011


On 23/09/11 09:28, Miguel de Melo wrote:
> Hi there,
>
> I've been working on a project with OpenSim and the libomv but i'm experiencing some issues ...
> I want to do two things:
>
> 1 - Import prims and associate automatically a script to them;
> 2 - Import mesh's and associate automatically a script to them;
>
> I want to make this steps in an automated way.. Like trough a bot or an application of the kind .. but by what i
> developed so far i'm seeing that is impossible because the opensim server interface and the libomv dont allow to import
> mesh's or associate scripts to objects, can you tell me how i can manage to solve the problem? Is there some features of
> the kind in development for the opensim server interface? and about the clear assets command is expected updates?

In principle, I thought it would have been possible to do both of these things through libomv, though you would need to 
ask on the libomv lists if anybody is available to help you.  As always, shuffling through the code is probably the best 
bet.

Via OpenSim, the way of doing this depends on exactly what you want to do.  If you want to import prims/meshes that 
already have scripts then you could use the load oar facility in the RemoteAdmin interface, possibly with the --merge 
option.  If you want to import a prim (perhaps via OAR) and then programatically associate a script this is not totally 
impossible but would involve a lot of delving into OpenSim internals, since there aren't good abstract interfaces for 
such tasks yet, and I don't know of any existing example code for doing this kind of thing.

As for "clear assets", this is an ancient command with no implementation, so I ripped it out in git master 8caf3ed.  If 
you're using the default Flotsam asset cache then you can clear this via the existing "fcache clear" command.  However, 
this isn't something you want to do in normal practice.

-- 
Justin Clark-Casey (justincc)
http://justincc.org/blog
http://twitter.com/justincc



More information about the Opensim-users mailing list