• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: SVC-4270
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: Critical Critical
Assignee: Unassigned
Reporter: Carl Wilder
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

We DESPERATELY need llGetLinkPrimitiveParams

Created: 17/May/09 04:59 PM   Updated: 17/May/09 05:03 PM
Return to search
Component/s: Scripts
Affects Version/s: None
Fix Version/s: None

Issue Links:
Duplicate
 


 Description  « Hide
LSL has an API llSetLinkPrimitiveParams() to set the params of a prim in a linkset. But there is NO equivalent llGetLinkPrimitiveParams() to get the existing values.

The lack of this API makes many operations on linksets either impossible or incredibly inefficient. For example: I want to scale an object by 10% from script. How can i do this with a linkset? The math is trivial. But i cannot GET the current size of prims in the linkset to scale them up (even though, once i had this, i could indeed SET them).

The workaround, of course, is to put a script in each prim in the linkset to either (a) do the scaling or (b) fetch the current scale (etc) so that the root prim can do the work. However, this suffers from two drawbacks:

1. it's complex: scripts need to talk to each other via lMessageLinked with some kind of protocol. This also adds significant sim overhead.

2. It adds extraneous scripts. Given that the Lindens are on a crusade to limit the number of scripts in a sim, then any enhancements to LSL that reduced the need to proliferate scripts would, i think, be very welcome and benefit everyone.

(As a general note, this specific bug is an example of the more general principal that ANY "set" type API should ALWAYS be mirrored by an equivalent "get" API).



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Gellan Glenelg added a comment - 17/May/09 05:03 PM
Duplicate of SVC-224
Please add your comments/vote to the earlier issue