# How to transmit multiple render windows with a VTK server and wslink launcher?

**URL:** https://discourse.vtk.org/t/how-to-transmit-multiple-render-windows-with-a-vtk-server-and-wslink-launcher/7877
**Category:** Web
**Created:** [February 18, 2022, 3:09pm UTC](https://discourse.vtk.org/t/how-to-transmit-multiple-render-windows-with-a-vtk-server-and-wslink-launcher/7877 "2022-02-18T15:09:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![joaomlap](https://discourse.vtk.org/user_avatar/discourse.vtk.org/joaomlap/32/3201_2.png) [@joaomlap](https://discourse.vtk.org/u/joaomlap)
#### Post date: [February 18, 2022, 3:09pm UTC](https://discourse.vtk.org/t/how-to-transmit-multiple-render-windows-with-a-vtk-server-and-wslink-launcher/7877/1 "2022-02-18T15:09:04Z")

</div>

Hi I am currently using VTK as a server and I am also using the wslink launcher to serve multiple users.  
My question is if a user wants to open multiple render windows like for example Paraview here:

 ![image](https://discourse.vtk.org/uploads/default/original/2X/a/aa774063de54f891a6fd7671c131e25bc093a92a.jpeg)

BTW what’s the difference to something like this:

 ![image](https://discourse.vtk.org/uploads/default/original/2X/5/54cbb985bc6cefa8625e04e3fa1ed283123d4752.png)

One of the key lines is:  
`self.getApplication().GetObjectIdMap().SetActiveObject("VIEW", render_window)`

So I have a doubt how to attach more render windows to the user session.

I hope I was clear enough in my question and thank you for any help that I can get.

Edit: I have a similar server setup to his: [https://github.com/Kitware/web-project-templates/tree/master/vue-vtkjs-pvw-template](https://github.com/Kitware/web-project-templates/tree/master/vue-vtkjs-pvw-template)

---

<div class="post-metadata">

### Author: ![Thiago\_Neves](https://discourse.vtk.org/user_avatar/discourse.vtk.org/thiago_neves/32/4886_2.png) [@Thiago\_Neves](https://discourse.vtk.org/u/Thiago_Neves)
#### Post date: [December 27, 2022, 9:03pm UTC](https://discourse.vtk.org/t/how-to-transmit-multiple-render-windows-with-a-vtk-server-and-wslink-launcher/7877/2 "2022-12-27T21:03:39Z")

</div>

Any updates on this? Im looking for a solution for the same issue

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [December 30, 2022, 5:15pm UTC](https://discourse.vtk.org/t/how-to-transmit-multiple-render-windows-with-a-vtk-server-and-wslink-launcher/7877/3 "2022-12-30T17:15:41Z")

</div>

Every view get a unique id which is the way they get mapped. The “active” magic is about having only one (at a time) and not having to know its id ahead of time (use id=-1 is going to do a lookup for active).

So you just need to get the view id and make sure the client use it when connecting to the server.
