Difference between revisions of "LlGetObjectDesc"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 8: Line 8:
|spec
|spec
|caveats=*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.
|caveats=*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.
*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).
|constants
|constants
|examples=<lsl>default
|examples=<lsl>default

Revision as of 09:02, 16 October 2008

Summary

Function: string llGetObjectDesc( );

Returns a string that is the description of the prim the script is attached to

Caveats

  • 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.
  • 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).
All Issues ~ Search JIRA for related Bugs

Examples

<lsl>default {

   state_entry()
   {
       llSay(PUBLIC_CHANNEL, llGetObjectDesc() );
   }
}</lsl>

See Also

Functions

•  llSetObjectDesc Sets the prim description.
•  llGetObjectName Gets the prim name.
•  llSetObjectName Sets the prim name.
•  llGetObjectDetails

Articles

•  Prim Attribute Overloading

Deep Notes

Search JIRA for related Issues

Signature

function string llGetObjectDesc();