From Second Life Wiki
Jump to navigation Jump to search


Function: llSetObjectDesc( string description );

Sets the prims description

• string description


  • 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 pipe character '|' and the newline character '\n' are not legal in a prim's description. They will be replaced with '?'.[1]
  • 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.

Important Issues

~ All Issues ~ Search JIRA for related Bugs
   Name or description change, of an attached object, is rolled back when object is detached


Set this prim's description Set the root prim's description
        llSetObjectDesc("NEW PRIM DESCRIPTION");


  • Object descriptions are often used to store data that needs to be protected from script resets (see, for example, Prim Attribute Overloading). However, descriptions are not immutable and can be tampered with by users or other scripts, either intentionally or accidentally, so this method should only be considered a last resort for data storage.
    • llLinksetDataWrite and associated functions are generally better suited for this purpose, because they allow for significantly more data storage and are much more secure against tampering.

See Also


•  llGetObjectDesc Gets the prim description.
•  llGetObjectName Gets the prim name.
•  llSetObjectName Sets the prim name.


•  Limits SL limits and constrictions

Deep Notes

All Issues

~ Search JIRA for related Issues
   llSetObjectDesc and editor panel have different description string length limits
   Name or description change, of an attached object, is rolled back when object is detached
   Cannot delete object description.


  1. ^ The pipe character historically has been used to separate fields in the serialized version of inventory. The field is not multi-line so the newline character holds no meaning in this context.


function void llSetObjectDesc( string description );