tags:

views:

21

answers:

1

Hi All,

This is related to LSL scripting in Second Life. I would like to know whether there is any mechanism to retrieve the display text of an object. As far as I know, there's no direct LSL function for that. Isn't there any property that we can use to extract this information?

/Su

+1  A: 

Assuming you mean the text that hovers over an object:

That text is set by calling llSetText, but there is no corresponding llGetText. Instead, you can use llGetPrimitiveParams with the constant PRIM_TEXT, like so:

list params = llGetPrimitiveParams([PRIM_TEXT]);
string text = llList2String(params, 0);
MtnViewMark