Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

More ability to affect link prims from same script!

Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
02-19-2004 16:25
I was pondering awhile about the usefulness of llSetLinkColor() when it dawned on me. It would be incredibly interesting and useful if we had a whole set of llSetLink* and llGetLink* functions.

I am currently scripting an object that requires scripts in each of its child primatives just because we dont have something like this. This is horribly un manageable, and creates additional stress on the simulator.

---------

Here's the rundown of what I'm requesting:

llSetLinkPrimitiveParams(integer linkNum, list parameters);

The linkNum parameter would have the same significance as it does with other link functions, accepting either the link number of the target prim, LINK_SET, LINK_ALL_OTHERS, or LINK_CHILDREN.

Example usage:
llSetLinkPrimitiveParams(LINK_ALL_CHILDREN, [PRIM_SCALE, <3,0.2,3>, PRIM_POSITION, <0,1,0>]);
This line would set all child primitives to <3, 0.2, 3> scale, and at an offset from the parent of <0, 1, 0>.

Parameters passed to this function are equivilant to those passed to llSetPrimitiveParams, with these exceptions:

PRIM_POSITION - Acts like llSetPos() does with child prims - accepts an offset vector from the parent. (This does nothing to the parent prim.)

PRIM_ROTATION - Acts like llSetRot() does with child prims. - Accepts a rotation. (This does nothing to the parent prim.)
---------

I think this would cut the load necessesary to create equivalent functions by putting scripts in the actual child prims themselves. I could have a parent prim controlling the movement of its children, and it would be totally independant of the scripts in the children, the children woundn't even need to have scripts.

I also think that this is completely possible, but abandoned for some reason. llSetLinkColor() is alive and well, so why not other llSetLink*() functions?

==Chris

EDIT: Provided nice formatting for everything :D

EDIT2: Changed the suggestion to one function, like the llSetPrimative() function proposed by Cory here.

EDIT3: Changed the constants to match those of llSetPrimitiveParams.
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
02-19-2004 22:23

YYYYYYEEEEEEESSSSSS!!!!!!

PPPPLLLLEEEEAAAASSSSEEE!!!!!!!!!!!!!
_____________________
~ Tiger Crossing
~ (Nonsanity)
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
03-07-2004 01:15
This thread seemed to fall quite rapidly to the second page of Feature Suggestions.

Is it really *that* bad?
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
07-10-2004 21:44
Bump! This is quite an old suggestion, but it still has relevence. I updated the suggestion a bit more (see EDIT3 at the bottom of the original post) to conform with standards set by the llSetPrimitiveParams function.
==Chris
Oz Spade
ReadsNoPostLongerThanHand
Join date: 23 Sep 2003
Posts: 2,708
07-11-2004 13:22
I endorse this.

More linking features via script would be great.
_____________________
"Don't anticipate outcome," the man said. "Await the unfolding of events. Remain in the moment." - Konrad
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
12-27-2004 21:24
Bump :)
Khamon Fate
fategardens.net
Join date: 21 Nov 2003
Posts: 4,177
12-27-2004 22:07
/bump

/stamp
_____________________
Visit the Fate Gardens Website @ fategardens.net
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
12-28-2004 01:43
<bump>
<stamp>
<drooool>
_____________________
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
12-28-2004 02:32
I really don't know what this means (semi-jesting), but since I see people I respect endorsing it, I might as well give it the goahead too. :)
_____________________
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
12-28-2004 03:42
You're back in SL and you didn't TELL ME?
Olmy Seraph
Valued Member
Join date: 1 Nov 2004
Posts: 502
12-28-2004 06:51
This sounds good to me. Of course, you'd need a corresponding llGetLinkPrimitiveParams call, and the format for the returned values of multiple prims might be tricky to manage. Once again we need multi-dimensional arrays or at least lists of lists.
_____________________
Some people are like Slinkies... not really good for anything, but they sure bring a smile to your face when you push them down the stairs.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
12-28-2004 06:53
<stamp>
_____________________
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
Ice Brodie
Head of Neo Mobius
Join date: 28 May 2004
Posts: 434
01-14-2005 17:21
I would like to see this o.o
(drools as well.)
_____________________
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
02-19-2005 12:51
<bump>
Richard Pinkerton
Registered User
Join date: 20 Jan 2005
Posts: 125
02-19-2005 14:06
freaky, I just posted a question about this in the scripting tips forum.
Archanox Underthorn
Registered User
Join date: 20 May 2003
Posts: 168
03-06-2006 13:49
*signed* Yes please
Just found out my scoreboard was one of the laggiest scripts in my sim because of the presence of all the tiny llSetTexture scripts.
_____________________
Archatek

Home to some of the highest quality katanas and other blades available in SL. Co-creator of the Samurai Island Combat System, one of the best melee combat systems available, come check it out!

___________________
Logan Bauer
Inept Adept
Join date: 13 Jun 2004
Posts: 2,237
03-06-2006 13:55
<signs>
Rickard Roentgen
Renaissance Punk
Join date: 4 Apr 2004
Posts: 1,869
03-06-2006 14:19
I want this too. Although if given a choice I vote for llGetLinkParams and llSetLinkParams. Be nice to have all that functionality in one go. Also makes it easy to set a bunch of params all in one go and syncronyzed
_____________________
Buxton Malaprop
Mad Physicist
Join date: 8 Jun 2005
Posts: 118
03-10-2006 18:37
This is an old thread. But I still wants it! *sign* *stamp*

Just think of how much easier this would make it to use XYText, and how many little "prim param relay" scripts we could get rid of...
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
05-26-2006 15:33
*Bump*

Someone call the Lindens!
Rickard Roentgen
Renaissance Punk
Join date: 4 Apr 2004
Posts: 1,869
05-26-2006 15:39
here here. I'm not sure why this is hard to implement, but I think when it came up the first time I saw it there was no concrete reason that the primparams scripts in the linked prims were bad. Inconvenient but not bad. Now, we've since learned that scripts even when not doing anything take sim resources, maybe not much and possibly more memory than processing time, but some. And none would definately be better than some :).
_____________________
Candle Hazlitt
C.D.S.V. Owner
Join date: 6 May 2006
Posts: 25
05-28-2006 20:23
this would be very useful. it might be laggy though to set new things for high prim objects so, knowing LSL, they'd probably give it a decent sleep script delay.
Eep Quirk
Absolutely Relative
Join date: 15 Dec 2004
Posts: 1,211
05-29-2006 02:45
Is there a feature vote proposal for this yet? Not like it'd matter much but it seems the Lindens couldn't give a shit. This would be good for the new PRIM_FLEXIBLE parameter too...
_____________________
Pentium D 820 (2.8GHz), 2GB PC4200 (533MHz) DDR2 RAM, BFG GeForce 6600GT 128MB