---
title: setPointCloudSettings
slug: viewer-3d/methods/setPointCloudSettings
docTags: 
createdAt: 2024-03-01T14:17:48.684Z
---

Sets the point cloud settings for the specified model.

## Example

::codepen{url="https://codepen.io/Catenda/embed/eYwRVyE"}

## Usage

```javascript
const modelId = "my-model-id";
const settings = {
  activeAttribute: "rgba",
  opacity: 1,
  pointSize: 1,
  pointSizeType: "adaptive"
};

viewer3d.setPointCloudSettings(modelId, settings);
```

## Parameters

### settings

The point cloud settings to apply to the specified model.

| **Type** | **Required** |
| -------- | ------------ |
| Object   | Yes          |

**Properties**

| **Name**          | **Type** | **Required** | **Description**                           |
| ----------------- | -------- | ------------ | ----------------------------------------- |
| `activeAttribute` | String   | No           | The active attribute for the point cloud  |
| `opacity`         | Number   | No           | The opacity of the point cloud            |
| `pointSize`       | Number   | No           | The size of the points in the point cloud |
| `pointSizeType`   | String   | No           | The type of point size to use             |

**activeAttribute**

Get valid values from [getPointCloudSettings](docId\:LS4VZmRu8NAqkasHNZRPs) `availableAttributes` property.

**pointSizeType**

Valid values are:

- `adaptive`
- `fixed`

