# PRIM_SIZE

*LSL constant*

```lsl
integer PRIM_SIZE = 7;
```

Prim parameter [PRIM_SIZE, vector size] to get or set the prim's physical dimensions (equivalent to llGetScale/llSetScale).

Constant groups: [PrimParam](/constants/groups/PrimParam/), [PrimParamGet](/constants/groups/PrimParamGet/)

Returns or sets the prim's `size`.

## Caveats

- Does not work on [physical](/constants/STATUS_PHYSICS/) prims.

## Examples

<details open>
<summary>Example 1</summary>

```lsl
//Changing the prim size and rotation
default
{
  touch_start(integer total_number)
  {
    llSetPrimitiveParams([
        PRIM_SIZE, <0.25,0.5,1.0>,
        PRIM_ROTATION, <1.0, 0.0, 0.0, 0.0>
      ]);
  }
}
```

</details>

## See also

### Functions

- [llGetPrimitiveParams](/functions/llGetPrimitiveParams/)
- [llGetScale](/functions/llGetScale/)
- [llSetScale](/functions/llSetScale/)

---

*Source: [PRIM SIZE](https://wiki.secondlife.com/wiki/PRIM_SIZE) on the Second Life Wiki. Content from the Second Life Wiki articles PRIM SIZE (revision 1194692, 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_SIZE/
