# How to export renderer output in (vtk python) and used that exported info only to rendered results on other vtk python.

**URL:** https://discourse.vtk.org/t/how-to-export-renderer-output-in-vtk-python-and-used-that-exported-info-only-to-rendered-results-on-other-vtk-python/8970
**Category:** Development
**Tags:** python
**Created:** [July 18, 2022, 10:40am UTC](https://discourse.vtk.org/t/how-to-export-renderer-output-in-vtk-python-and-used-that-exported-info-only-to-rendered-results-on-other-vtk-python/8970 "2022-07-18T10:40:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![khadija](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/k/6f9a4e/32.png) [@khadija](https://discourse.vtk.org/u/khadija)
#### Post date: [July 18, 2022, 10:40am UTC](https://discourse.vtk.org/t/how-to-export-renderer-output-in-vtk-python-and-used-that-exported-info-only-to-rendered-results-on-other-vtk-python/8970/1 "2022-07-18T10:40:45Z")

</div>

I want the rendering result on **one pc from vtk python** and **just display rendered 3d data** on the **other pc** by using some **exported files**?

is it possible to export vtk rendered files in python in a format that can be open on another pc with python and only shows the rendered results on screen? , if it is possible then how to export? and use exported data on the other end

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [July 19, 2022, 8:04am UTC](https://discourse.vtk.org/t/how-to-export-renderer-output-in-vtk-python-and-used-that-exported-info-only-to-rendered-results-on-other-vtk-python/8970/2 "2022-07-19T08:04:53Z")

</div>

Many formats are possible but I’d recommend vtk.js or gltf format.

---

<div class="post-metadata">

### Author: ![khadija](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/k/6f9a4e/32.png) [@khadija](https://discourse.vtk.org/u/khadija)
#### Post date: [July 19, 2022, 9:13am UTC](https://discourse.vtk.org/t/how-to-export-renderer-output-in-vtk-python-and-used-that-exported-info-only-to-rendered-results-on-other-vtk-python/8970/3 "2022-07-19T09:13:18Z")

</div>

can you please share any example here

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [July 19, 2022, 9:16am UTC](https://discourse.vtk.org/t/how-to-export-renderer-output-in-vtk-python-and-used-that-exported-info-only-to-rendered-results-on-other-vtk-python/8970/4 "2022-07-19T09:16:21Z")

</div>

[https://gitlab.kitware.com/vtk/vtk/-/blob/master/IO/Export/Testing/Cxx/TestGLTFExporter.cxx](https://gitlab.kitware.com/vtk/vtk/-/blob/master/IO/Export/Testing/Cxx/TestGLTFExporter.cxx)

---

<div class="post-metadata">

### Author: ![khadija](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/k/6f9a4e/32.png) [@khadija](https://discourse.vtk.org/u/khadija)
#### Post date: [July 19, 2022, 9:38am UTC](https://discourse.vtk.org/t/how-to-export-renderer-output-in-vtk-python-and-used-that-exported-info-only-to-rendered-results-on-other-vtk-python/8970/5 "2022-07-19T09:38:18Z")

</div>

> [@mwestphal](#):
>
> js

here is my example , this rendering code is saving output attached as image you can see,

renWin = vtk.vtkRenderWindow()  
renWin.AddRenderer(renderer)  
exporter=vtk.vtkJSONSceneExporter()  
exporter.SetFileName(“newscene”)  
exporter.SetInput(renWin)  
exporter.SetActiveRenderer(renderer);  
exporter.Write()

result…\>  
 ![image](https://discourse.vtk.org/uploads/default/original/2X/0/0ae5dd0781eee30516d6d214eeb67a3dc14a5c24.png)

now how can i view/render these jsons file in python? , I want to import these files and only render on python.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [July 19, 2022, 9:41am UTC](https://discourse.vtk.org/t/how-to-export-renderer-output-in-vtk-python-and-used-that-exported-info-only-to-rendered-results-on-other-vtk-python/8970/6 "2022-07-19T09:41:16Z")

</div>

You can use the [deleted].

Nevermind, no such importer in VTK. @Sebastien_Jourdain should be able to help though.
