> For the complete documentation index, see [llms.txt](https://docs.avataar.ai/knowledge-center/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avataar.ai/knowledge-center/ide-low-code/ide-functions/add-object-to-the-scene.md).

# Add Object to The Scene

**addObjecttoScene:**: to add Object to the scene (returns objId of the object)

| assetName     | asset name          | required | string                 | Unit     |
| ------------- | ------------------- | -------- | ---------------------- | -------- |
| position      | default: \[0, 0, 0] | optional | \[float, float, float] | 3D Units |
| rotation      | default: \[0, 0, 0] | optional | \[float, float, float] | Radian   |
| scale         | default: \[1, 1, 1] | optional | \[float, float, float] | 3D Units |
| opacity       | default: 1          | optional | float                  | Units    |
| handleOnClick | OnClickFunction     | optional | -                      | -        |

```javascript
// 
var objId = IDE.addObjecttoScene({
    assetName: 'ASSETglb', //glb object name
    position: [0, 0, 0],
    scale: [1, 1, 1],
    rotation: [0, 0, 0],
    handleOnClick: handleClickFunction	
})

```

**removeObjectfromScene:**

```javascript
// IDE.removeObjectfromScene({ refId: objId })

```

<br>
