|
Atom Tigerfish
Registered User
Join date: 21 Dec 2008
Posts: 28
|
12-27-2008 14:17
I am currently making something that has, for simplicity's sake, "add-ons" with will link themselves to the main object. The main object is going to have the script that is going to do the linking, but things in the main objects are going to need to be identified by link numbers. If I have it link like that, will it change the link numbers?
And does Second Life do a link tree? Like if I have two objects, each of them has it's own root prim and a bunch of child prims, so that they look like this (each one):
Root | |--Child Prim |--Child Prim |--Child Prim |--Child Prim |--Child Prim
Can I link them together and have a link tree, like this:
Root | |--Child Prim |--Second Root >>|--Child Prim >>|--Child Prim >>|--Child Prim >>|--Child Prim >>|--Child Prim |--Child Prim |--Child Prim |--Child Prim
Thanks,
-Atom Tigerfish
|
|
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
|
12-27-2008 14:23
Nope, no hierarchical linking available.
I have heard that it is something that was promised a long time ago, but has never made it into existence.
_____________________
Visit ChereeMotion - Life's Best Pinup Poses http://slurl.com/secondlife/Wild%20Rice/38/230/51
|
|
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
|
12-27-2008 14:28
No.
SL only allows one level of root and child for linked objects.
You could maintain your own list of hierarchy and link and unlink them using scripts, but the linking and unlinking takes enough time to make it unlikely to work as fluidly as one would want.
_____________________
-
So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.
I can be found on the web by searching for "SuezanneC Baskerville", or go to
http://www.google.com/profiles/suezanne
-
http://lindenlab.tribe.net/ created on 11/19/03.
Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard, Robin, and Ryan
-
|
|
Atom Tigerfish
Registered User
Join date: 21 Dec 2008
Posts: 28
|
12-27-2008 14:33
Okay, thanks. If I had a 15 prim object with links 0 through 14, and another with 0 through 4, and I linked the second one onto the first, would all the prims from the first one be known as 0 through 14 and from the second one 15 through 19?
Thanks,
Atom Tigerfish
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-28-2008 03:11
IIRC when linking two objects 0-3 and A-D you get either 0ABCD123 or A0123BCD... there's an article on one of the wiki's discussing it
_____________________
| | . "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... | - 
|
|
Ollj Oh
Registered User
Join date: 28 Aug 2007
Posts: 522
|
12-28-2008 07:30
no. Linking and unlinking are way too RANDOM to think of a linking tree or a general order. If pieces are far apart the algorythm goes into secondary loops and that pretty much randomizes the linknumber order of 2 linked linksets.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-28-2008 15:43
found it, https://wiki.secondlife.com/wiki/LlCreateLinkllCreateLink inserts the new prim/object into the calling object directly after the root prim.... if a whole object is inserted, that means it retains it's order as I posted above... each newly created link wil insert at that position (after the root) the fix would be to either delink and relink the original prims (link new prims in last to first order, then old prims in last to first order) or to use a different system for addressing the prims other than just their link number (perhpas something as simple as a description tag, or a report feature on CHANGED_LINK)
_____________________
| | . "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... | - 
|