LlSetObjectDesc

From Second Life Wiki

Second Life Wiki > LSL Portal > Built-in Functions > LlSetObjectDesc (Redirected from LSL llSetObjectDesc)
Jump to: navigation, search

Contents

Summary

Buggy
Function: llSetObjectDesc( string description );
271 Function ID
0.0 Delay
10.0 Energy

Sets the prims description

• string description

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
Bug - A problem which impairs or prevents the functions of the product. Open - The issue is open and ready for the assignee to start work on it.    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
Bug - A problem which impairs or prevents the functions of the product. Resolved - A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.    llSetObjectDesc and editor panel have different description string length limits
Bug - A problem which impairs or prevents the functions of the product. Open - The issue is open and ready for the assignee to start work on it.    Name or description change, of an attached object, is rolled back when object is detached

Footnotes

  1. ^ 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.
Personal tools
In other languages