Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

"Temp" links of already-linked objects?

Tread Whiplash
Crazy Crafter
Join date: 25 Dec 2004
Posts: 291
01-22-2005 04:38
Okay, so I'm still learning some aspects of LSL...

I'm working with several objects. Each consists of 2 prims linked together.

If I want to move ALL of these objects simultaneously, the best way to do that seems to be to link them all together for the move...

But once I "dissolve" the link after the move, I'll end up with every single prim as an individual object, correct? There's no simple way to revert back to the original linked pairs, as I understand it...

Anyone have any suggestions or ideas on how best to handle this? I've already thought about maintaining a list of object keys and pairing the prims back together manually, after the move - but that's awfully messy, inelegant, and slow. :rolleyes:

Any tips or ideas would be welcome! Thanks, take care,

--Noel "HB" Wade
(Tread Whiplash)
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
01-22-2005 05:18
From: Tread Whiplash
I've already thought about maintaining a list of object keys and pairing the prims back together manually, after the move - but that's awfully messy, inelegant, and slow.


I have a script that does just this. It annexs off a number of prims, links the prims together, moves them as a group, then relinks the group to the base object. I wrote it so i could have multi prim moving drawers in furniture. It's slow and inelegant. But it does the job and looks ok. (IM me if you want a copy)

Would be nice if we had a llSetPrimitiveParams flag PRIM_LINK_POSITION which would take a integer (link number) and vector (pos). This way we could move the prims without having to have scripts in each sub prim and move multiple prims at the same time.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey