Skip to content
lsl.devlsl.devLSL Dev

PRIM_NAME

constant
Constant
integer PRIM_NAME = 27;

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

Constant groups

PrimParam · PrimParamGet

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

Used to get or set the prim’s name.

These are code fragments only
string NameOfThisPrim = llList2String( llGetPrimitiveParams( [PRIM_NAME] ), 0);
In cases like this where a list only contains one entry, we can get away with a shortcut:-
string NameOfThisPrim = (string) llGetPrimitiveParams( [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.