On ti, 2010-05-25 at 12:08 -0700, mattdevlin wrote: > I'm not sure if this is really the best place to ask but I'm going to > go for it anyways.
I think this is good - there used to be realXtend forums too, but don't know if there is an active one now. > A: a automatic realignment of the models, say hourly, where the server (..) > B: a command students could type into say, their local chat, that > would be recognized and force the system to realign the models for Both are certainly doable and should be easy. > I have all the models aligned in blender so when they export one by > one, and get attached to a prim, they automatically align as long as > the prims are in the exact same location. You can nowadays also export the whole scene, the alignment, from Blender, so you don't have to create any prims nor place anything manually. http://realxtend.blogspot.com/2009/12/tutorial-to-import-scene-from-blender.html The development version of Naali has also a GUI where uploading those from the client is being implemented, so using the server console for the loading is not the only option soon anymore. > If anyone know what to do, or how I should go about finding out how to > do this, I would be eternally grateful. For an example of a similar thing in action, see the car demo world preconfigured in Naali demos, at home.hulkko.net:9007 -- you can access it with rexviewer too, it has authentication disabled so typing any os account (e.g.: My Name) works to login. There you should see a car and some round buttons on front of it. The topmost button (the white one) moves the parts either to away from the right places so that you can see the internals, or back to where they belong (is a toggle button). That is implemented with a script where the positions for the two states are stored, and which just sets the positions to either ones. Your case is actually simpler 'cause it doesn't have to know how to toggle, just restore the original positions. Perhaps the author of that script (Mikko P. ?) can share it so that you can use it as a base. An alternative is to have a periodical operating system level job that just restores the Opensim database to the original one -- the positions of the objects are in that db. That is actually done e.g. in that car show demo world, so you can mess around there freely, is a sandbox also. Also the opensim console command pair save-xml2 / load-xml2 might do the job. If you first import your blender scene, then say "save-xml2 yourfile", move objects around, and say "load-xml2 yourfile", they might pop to the original places. I don't remember exactly if that clears the scene first and then adds your objs back, or merges so that you would get duplicates .. I think it clears by default so should work like you need. We have used a modified version of the xml2 saving for saving/loading parts of scene with rex meshes recently and it works. Making buttons or text chat handlers that trigger those commands is possible in rexscript or plain opensim region modules. ~Toni -- http://groups.google.com/group/realxtend http://www.realxtend.org
