Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llGetPrimitiveParams on Linked Prims

Candace Sahara
Registered User
Join date: 8 May 2009
Posts: 11
05-16-2009 05:22
OK, it seems that LL once again is making certain things really difficult...

I want to get primitive paramaters for linked objects in a linked set. There seems to be only 1 way to do it.

1) have a script inside the prim that runs the llGetPrimitiveParams command

This implies that I have to have a script running inside the prim. My frustration is that I can use llSetLinkedPrimParamaters to change a linked prims settings remotely but I can't get the original settings without that prim running a acript.

I have tried to use llRemoteLoadScript to send a script into the linked parts to get the paramaters, but you can't do that without setting each linked prims remote access PIN first (also requires a script).

So the frustration is this... I have a 100 prim linked set and I want to set certain prim paramaters on those items but unless I manually place a script in each one I can't remotely set it from the root prim.

Any ideas if this can be done?
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
05-16-2009 06:06
From: Candace Sahara

I have tried to use llRemoteLoadScript to send a script into the linked parts to get the paramaters, but you can't do that without setting each linked prims remote access PIN first (also requires a script).

So the frustration is this... I have a 100 prim linked set and I want to set certain prim paramaters on those items but unless I manually place a script in each one I can't remotely set it from the root prim.

Any ideas if this can be done?
You can use llGiveInventory to give a non-running script to all the child prims, take the linkset back into your inventory, rez it again, and then "set all scripts to running in selection" (or whatever it's called) from the Tools menu. This would be a way of setting a PIN for future use, too. This function, taken from Emma Nowhere's very handy script, "Fix Small Prims", http://wiki.secondlife.com/wiki/Fix_Small_Prims, does the job very well
CODE

GiveScriptToLinkedPrims()
{
integer p = llGetNumberOfPrims();
integer i = 0;
for (i = 2; i <= p; i++)
{
key prim = llGetLinkKey(i);
llGiveInventory(prim, llGetScriptName());
}
}
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
05-16-2009 13:47
or cheat and preset the childprims pin access, then you can have a non running script that's later given and runs on the preconfigured child and immediately dies after reporting the properties you need. (slick no?)

script pin is a prim property.
_____________________
|
| . "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...
| -