The integer constant PRIM_DESC has the value 28
Used to get or set the prim's description.
Syntax
integer PRIM_DESC = 28;
Usage
llSetPrimitiveParams([ PRIM_DESC, string description ]);
The same syntax applies to llSetLinkPrimitiveParams and llSetLinkPrimitiveParamsFast but with an additional prefixed link parameter in the function call.
llGetPrimitiveParams([ PRIM_DESC ]);
Returns the list [ string description ]
The same syntax applies to llGetLinkPrimitiveParams, but with an additional prefixed link parameter in the function call.
Caveats
- The prim description is limited to 127 bytes; any string longer then that will be truncated. This truncation does not always happen when the attribute is set or read.
- The prim description may only contain printable ASCII characters (code points 32-126), except the pipe character '|', which is not permitted for historical reasons.[1] All other characters will be replaced with one '?' character per illegal UTF-8 byte.
- Note that when people have "Hover Tips on All Objects" selected in the viewer's "View" menu, they'll see the object description pop-up for any object under their mouse pointer. For that reason, it is good practice to only set human-friendly information in the description, e.g. keys and such.
- When an attached object is detached, changes made by script to the name and description (of the root prim) of the attachment will be lost. While the object is attached the name and description can be changed but it will not be reflected in inventory. This caveat does not apply to child prims.
See also
Functions
Articles
- Limits – SL limits and constrictions
Deep notes
History
Footnotes
- The pipe character historically has been used to separate fields in the serialized version of inventory and possibly other internal fields for prim parameters.