|
Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
|
07-01-2009 01:59
Programs such as Second Inventory, and Viewers such as Gemini, allow prim tables to be exported to some sort of external text file, which can then be parsed to recreate prims in Opensim, or from Opensim back to Second Life. I am interested in constructing a converter from SL prims to Sketchup (I am aware of the attempt made back in 2006 to do this, but it did not develop very far from basic,  , and I was wondering if there are any scripts around I could use as a starting point for getting prim data outside of SL in a text/xml format. Rock
|
|
Osprey Therian
I want capslocklock
Join date: 6 Jul 2004
Posts: 5,049
|
07-01-2009 07:58
Meerkat viewer exports to xml.
|
|
Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
|
07-02-2009 00:21
From: Osprey Therian Meerkat viewer exports to xml. Is it known if either Meerkat or Gemini export to any kind of standard (such as Collada) in their xml prim files? Or is it proprietary? PrimComposer (Second Life < > 3DSMax) works by selecting a build in SL then exporting the data to an external file using a libsecondlife bridge and vice versa for import. A generic 3D format (such as Collada) would be more preferable. Rock
|
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
07-02-2009 08:17
The reason you don't see these is that it is devilishly difficult. Simple things are simple, but anything of any complexity is hard.
The best manual way I can think of is to take photos of the object in SL, and then use the Sketchup Photo Matching facility.
_____________________
So many monkeys, so little Shakespeare.
|
|
Rock Vacirca
riches to rags
Join date: 18 Oct 2006
Posts: 1,093
|
07-02-2009 08:35
From: Lee Ponzu The reason you don't see these is that it is devilishly difficult. Simple things are simple, but anything of any complexity is hard.
The best manual way I can think of is to take photos of the object in SL, and then use the Sketchup Photo Matching facility. I would have thought that a build could be analysed using llGetPrimitiveParams, written out (maybe by using Zero Linden's Data storage via llHTTPRequest [silo]), then have the build reconstructed by using llSetPrimitiveParams Incidently, the wiki entry for llGetPrimitiveParams says it gets 'nearly every prim attribute'. Which prim attributes does it NOT get? I do notice that some prim copiers in Xstreetsl provide a script that must be placed in every prim in a linked set in order to get the prim's attributes. Is there really no way around this? Can it not be done with a single script in the root prim? Rock
|
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
07-02-2009 09:18
From: Rock Vacirca rs in Xstreetsl provide a script that must be placed in every prim in a linked set in order to get the prim's attributes. Is there really no way around this? Can it not be done with a single script in the root prim? There is no llGetLinkPrimitiveParams function so yeah, scripts really have to do it that way. The XML spit out by Meerkat, copybot, Gemini and similar tools represents SL's own peculiar format. It's open now, but no one else really uses it.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
07-02-2009 10:43
From: Rock Vacirca Incidently, the wiki entry for llGetPrimitiveParams says it gets 'nearly every prim attribute'. Which prim attributes does it NOT get? particles attributes, buy/pay status, hover text, link order (which can be gotten elsewhere), script pin, some prim properties (if they've been prim-tortured) and several other "minor" attributes, like sound loops, collision particles (which I think are broken anway) and collission sounds. essentially anything that you can set, but not get.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|