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

Returns 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 = viewer3d.getPointCloudSettings(modelId);
```

## Parameters

### modelId

The id of the model to get the point cloud settings for.

| **Type** | **Required** |
| -------- | ------------ |
| String   | Yes          |

## Return Value

The point cloud settings for the specified model, returns `null` if specified model not point cloud type.

| **Type** |
| -------- |
| Object   |

**Properties**

| **Name**              | **Type** | **Description**                              |
| --------------------- | -------- | -------------------------------------------- |
| `activeAttribute`     | String   | The active attribute for the point cloud     |
| `availableAttributes` | Array    | The available attributes for the point cloud |
| `opacity`             | Number   | The opacity of the point cloud               |
| `pointSize`           | Number   | The size of the points in the point cloud    |
| `pointSizeType`       | String   | The type of point size used                  |

**pointSizeType**

Valid values are:

- `adaptive`
- `fixed`

### Example

```javascript
{
  activeAttribute: "rgba",
  availableAttributes: ["rgba"],
  opacity: 1,
  pointSize: 1,
  pointSizeType: "adaptive",
};
```

