Retrieving the display text of an object

I would like to know if there is any mechanism for getting the displayed text of an object. As far as I know, there is no direct LSL function for this.

Is there any property that we can use to extract this information?

+3
source share
1 answer

Assuming you mean text that is hovering over an object:

This text is specified by calling llSetText , but the corresponding llGetText does not exist. Instead, you can use llGetPrimitiveParams with the constant PRIM_TEXT, for example:

list params = llGetPrimitiveParams([PRIM_TEXT]);
string text = llList2String(params, 0);
+5
source

Source: https://habr.com/ru/post/1731821/


All Articles