LlSetObjectDesc
From Second Life Wiki
Second Life Wiki > LSL Portal > Built-in Functions > LlSetObjectDesc (Redirected from LSL llSetObjectDesc)
| Languages: |
English • Deutsch • Español • ελληνικά • Français • עברית • Italiano • 日本語 • 한국어 • Nederlands • Magyar • Norsk • Dansk • Svenska • Türkçe • Polski • Português • Русский • украї́нська • 中文(简体) • 中文(繁體) |
| Volunteer translated pages are linked in blue, Google translated pages are linked in grey. Learn how to provide volunteer translations. | |
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Contents |
Caveats
- The description is limited to 127 bytes, any string longer then that will be truncated.
- The pipe character | is not legal in an object's description, it will be replaced by a '?'[1].
- When an 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. These limitations do not apply to child prims.
Important Issues
~ Search JIRA for related Bugs| | | VWR-3429 [c] | Name or description change, of an attached object, is rolled back when object is detached |
Examples
//store the owner's name in the prim description default { touch_start(integer total_number) { string temp; temp = llKey2Name(llGetOwner()); llSetObjectDesc(temp); } }
See Also
Functions
| • | llGetObjectDesc | – | Gets the prim description. | |
| • | llGetObjectName | – | Gets the prim name. | |
| • | llSetObjectName | – | Sets the prim name. |
Articles
| • | Limits | – | SL limits and constrictions | |
| • | Prim Attribute Overloading |
Deep Notes
Issues
~ Search JIRA for related Issues| | | VWR-437 [c] | llSetObjectDesc and editor panel have different description string length limits | |
| | | VWR-3429 [c] | Name or description change, of an attached object, is rolled back when object is detached |
Footnotes
- ^ This is because the pipe character historically has been used to separate fields in the serialized version of inventory.
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

