04-10-2007 05:44
I posted a small suggestion on the Jira but decided that since there are a few other expansions I'd like to the llSetPrimitiveParams() and related functios that I may as well have a topic for just PrimitiveParam additions.

My suggestion was a PRIM_LOCALROT (or similarly named) constant allowing us to apply local rotations to a primitive in llSetPrimitiveParams() functions. The Jira post is at:
https://jira.secondlife.com/browse/SVC-102

Other things I would have liked would be the ability to apply individual changes to multiple prims in a linked set using a single llSetLinkPrimitiveParams() call. This was discussed when it was being added but nothing happened, things like:

CODE
llSetLinkSetPrimitiveParams([
LINK_SET, PRIM_COLOR, ALL_SIDES, <1.0, 0.0, 0.0>, 1.0, // Set all prims to red
2, PRIM_POSITION, ZERO_VECTOR, // Set prim 2 to local position <0.0, 0.0, 0.0>
4, PRIM_POSITION, <1.0, 0.0, 0.0> // Set prim 4 to local position <1.0, 0.0, 0.0>
]);


With a corresponding function:
CODE
list llGetLinkSetPrimitiveParams(list links, list params);


This returns a list containing all params grouped by each of the links. So to use it I might do:
CODE
list result = llGetLinkSetPrimitiveParams([2, 4], [PRIM_POSITION, PRIM_COLOR, ALL_SIDES]);
result = [
<0.0, 0.0, 0.0>, <1.0, 0.0, 0.0>, 1.0,
<1.0, 0.0, 0.0>, <1.0, 0.0, 0.0>, 1.0
];


Any other additions welcome, or comments on these =)
_____________________
Computer (Mac Pro):
2 x Quad Core 3.2ghz Xeon
10gb DDR2 800mhz FB-DIMMS
4 x 750gb, 32mb cache hard-drives (RAID-0/striped)
NVidia GeForce 8800GT (512mb)