# Place scs file in existing viewer scene with position, rotation and scale

**URL:** <https://forum.techsoft3d.com/t/place-scs-file-in-existing-viewer-scene-with-position-rotation-and-scale/2940>\
**Category:** HOOPS Visualize Web\
**Tags:** webviewer\
**Created:** [November 26, 2023, 9:45am UTC](https://forum.techsoft3d.com/t/place-scs-file-in-existing-viewer-scene-with-position-rotation-and-scale/2940 "2023-11-26T09:45:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EspenMarthini](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/espenmarthini/32/1249_2.png) [@EspenMarthini](https://forum.techsoft3d.com/u/EspenMarthini)\
**Post date:** [November 26, 2023, 9:45am UTC](https://forum.techsoft3d.com/t/place-scs-file-in-existing-viewer-scene-with-position-rotation-and-scale/2940/1 "2023-11-26T09:45:27Z")

</div>

Do someone know if it is possible to place a scs file in an existing model scene and add position, rotation and scale?  
Let’s say that you are viewing a building. And want to add a glb representation of some asset like a chair. Can that be place where it belongs using for example the loadSubtreeFromScsFile function?

---

<div class="post-metadata">

**Author:** ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)\
**Post date:** [November 26, 2023, 11:16am UTC](https://forum.techsoft3d.com/t/place-scs-file-in-existing-viewer-scene-with-position-rotation-and-scale/2940/2 "2023-11-26T11:16:15Z")

</div>

Hello @EspenMarthini

One of the parameters for the method [loadSubtreeFromScsFile](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.Model.html#Communicator.Model.loadSubtreeFromScsFile) is a [LoadSubtreeConfig](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.LoadSubtreeConfig.html#Communicator.LoadSubtreeConfig) object – which in turn has a property called [additionalMatrix](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.LoadSubtreeConfig.html#Communicator.LoadSubtreeConfig.additionalMatrix). Essentially you can create your own transformation [matrix](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.Matrix.html?#Communicator.Matrix) (position, rotation, scale) to place the SCS file being loaded into the scene.

As noted in our docs on [loading subtrees](https://docs.techsoft3d.com/communicator/latest/prog_guide/viewing/data_model/stream_cache/loading-subtrees.html?highlight=matrix),

> _The newly attached model inherits the net matrix of its parent node, meaning that its 3D location in relation to the rest of the model will depend on the node hierarchy above it._

So you will need to factor other transformation matrices, if any, above the model that you are loading.

Thanks,  
Tino
