function
Function syntax
llSetObjectDesc(string description// New description string (up to 127 characters).
);- Energy
- 10
Sets the description of the prim containing the script to description (limited to 127 characters).
Sets the prims description
llSetObjectDesc("");Caveats
Section titled “Caveats”- Changing the object description does not trigger a
changedevent.
Examples
Section titled “Examples”| Set this prim’s description | Set the root prim’s 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.
llLinksetDataWriteand associated functions are generally better suited for this purpose, because they allow for significantly more data storage and are much more secure against tampering.
Known issues
Section titled “Known issues”From the issue templates included by the wiki article:
- VWR-437 (bug): llSetObjectDesc and editor panel have different description string length limits
- SVC-3429 (bug): Name or description change, of an attached object, is rolled back when object is detached
- VWR-8761 (bug): Cannot delete object description.
See also
Section titled “See also”Functions
Section titled “Functions”llGetObjectDesc— Gets the prim description.llGetObjectName— Gets the prim name.llSetObjectName— Sets the prim name.
Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.