Skip to content

PRIM_NAME

constant
Constant
integer PRIM_NAME = 27;
Set with llSetLinkPrimitiveParamsFast
PRIM_NAME, string name
Get with llGetLinkPrimitiveParams, llGetPrimitiveParams
PRIM_NAME → string name

Prim parameter [PRIM_NAME, string name] to get or set the prim's name (equivalent to llGetObjectName/llSetObjectName).

Other PrimParam values (42)
Other PrimParamGet values (40)

Used to get or set the prim’s name.

llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_NAME, string name ]);
  • string name — variable name

The same syntax applies to llSetLinkPrimitiveParams and llSetLinkPrimitiveParamsFast but with an additional prefixed link parameter in the function call.

There is no llSetLinkName function, using this flag this way fills that niche.

llGetLinkPrimitiveParams(LINK_THIS, [ PRIM_NAME ]);

Returns the same values, in the same order.

The same syntax applies to llGetLinkPrimitiveParams, but with an additional prefixed link parameter in the function call.

If link refers to an avatar (seated avatars are assigned link numbers), the avatar’s legacy name is returned.

These are code fragments only
string NameOfThisPrim = llList2String( llGetLinkPrimitiveParams(LINK_THIS, [PRIM_NAME] ), 0);
In cases like this where a list only contains one entry, we can get away with a shortcut:-
string NameOfThisPrim = (string) llGetLinkPrimitiveParams(LINK_THIS, [PRIM_NAME] );
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.