# PRIM_NAME

*LSL constant*

```lsl
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](/constants/groups/PrimParam/), [PrimParamGet](/constants/groups/PrimParamGet/)

Used to get or set the prim's name.

## Examples

<details open>
<summary>These are code fragments only</summary>

```lsl
    string NameOfThisPrim = llList2String( llGetPrimitiveParams( [PRIM_NAME] ), 0);
```

</details>

<details>
<summary>In cases like this where a list only contains one entry, we can get away with a shortcut:-</summary>

```lsl
    string NameOfThisPrim = (string) llGetPrimitiveParams( [PRIM_NAME] );
```

</details>

## History

- Date of release [29-03-2010](https://wiki.secondlife.com/wiki/Release_Notes/Second_Life_Server/1.38#new-features)

## See also

### Functions

- [llSetLinkPrimitiveParamsFast](/functions/llSetLinkPrimitiveParamsFast/)
- [llGetPrimitiveParams](/functions/llGetPrimitiveParams/)
- [llGetLinkPrimitiveParams](/functions/llGetLinkPrimitiveParams/)
- [llGetObjectName](/functions/llGetObjectName/)
- [llSetObjectName](/functions/llSetObjectName/)
- [llGetLinkName](/functions/llGetLinkName/)

---

*Source: [PRIM NAME](https://wiki.secondlife.com/wiki/PRIM_NAME) on the Second Life Wiki. Content from the Second Life Wiki articles PRIM NAME (revision 1194683, 2015-01-23) and Template:LSL PrimitiveParam Categorize (revision 1180644, 2013-08-09), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/PRIM_NAME/
