Difference between revisions of "LlSetObjectName"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 11: Line 11:
|spec
|spec
|caveats=
|caveats=
#The name is limited to 63 characgters. Longer prim names appeared cut short.
#The name is limited to 63 characters. Longer prim names appeared cut short.
#The LL client did not reliably show the current name. Misleadingly old names sometimes appeared at Edit > General > Name until you closed and reopened the Edit dialog of the prim.
#The LL client did not reliably show the current name. Misleadingly old names sometimes appeared at Edit > General > Name until you closed and reopened the Edit dialog of the prim.
|constants
|constants
|examples=<pre>
|examples=<lsl>default
default
{
{
     state_entry()
     state_entry()
Line 24: Line 23:
         llSetObjectName(name);
         llSetObjectName(name);
     }
     }
}
}</lsl>
</pre>
|helpers
|helpers
|also_functions=
|also_functions=

Revision as of 01:39, 2 February 2008

Summary

Function: llSetObjectName( string name );

Sets the prim's name according to the name parameter.

• string name

If this function is called from a child prim in a linked set, it will change the name of the child prim and not the root prim.

Caveats

  1. The name is limited to 63 characters. Longer prim names appeared cut short.
  2. The LL client did not reliably show the current name. Misleadingly old names sometimes appeared at Edit > General > Name until you closed and reopened the Edit dialog of the prim.
All Issues ~ Search JIRA for related Bugs

Examples

<lsl>default {

   state_entry()
   {
       string yyyy1mm1dd = llGetDate();
       string name = yyyy1mm1dd + " " + llGetObjectName();
       llOwnerSay("llSetObjectName(\"" + name + "\")");
       llSetObjectName(name);
   }
}</lsl>

See Also

Functions

•  llGetObjectName Get the prims name
•  llGetLinkName Get a linked prims name
•  llGetObjectDesc Get the prims description
•  llSetObjectDesc Set the prims description

Deep Notes

Search JIRA for related Issues

Signature

function void llSetObjectName( string name );