Difference between revisions of "LlSetObjectDesc"

From Second Life Wiki
Jump to navigation Jump to search
Line 7: Line 7:
|return_text
|return_text
|spec
|spec
|caveats=*The object 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.
|caveats=*The object description is limited to 127 bytes, any string longer then that will be truncated.
*According to [http://jira.secondlife.com/browse/VWR-437 VWR-437] if you set the description to longer then 256 bytes the object may no longer be rezzable. Use caution if using this field to store data.
*According to [http://jira.secondlife.com/browse/VWR-437 VWR-437] if you set the description to longer then 256 bytes the object may no longer be rezzable. Use caution if using this field to store data.
|constants
|constants

Revision as of 12:41, 1 February 2008

Summary

Function: llSetObjectDesc( string desc );

Sets the prims description

• string desc

Caveats

  • The object description is limited to 127 bytes, any string longer then that will be truncated.
  • According to VWR-437 if you set the description to longer then 256 bytes the object may no longer be rezzable. Use caution if using this field to store data.
All Issues ~ Search JIRA for related Bugs

Examples

//store the owner's name in the prim description
touch_start(integer total_number)
    {
        string temp;

        temp = llKey2Name(llGetOwner());

        llSetObjectDesc(temp);
    }

See Also

Functions

•  llGetObjectDesc Returns the object description.
•  llGetObjectName Gets the object name.
•  llSetObjectName Sets the object name.

Articles

•  Prim Attribute Overloading

Deep Notes

Search JIRA for related Issues

Signature

function void llSetObjectDesc( string desc );