# Light Serialization

**URL:** https://discourse.vtk.org/t/light-serialization/1294
**Category:** Web
**Created:** [July 6, 2019, 10:15pm UTC](https://discourse.vtk.org/t/light-serialization/1294 "2019-07-06T22:15:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![akaszynski](https://discourse.vtk.org/user_avatar/discourse.vtk.org/akaszynski/32/10751_2.png) [@akaszynski](https://discourse.vtk.org/u/akaszynski)
#### Post date: [July 6, 2019, 10:15pm UTC](https://discourse.vtk.org/t/light-serialization/1294/1 "2019-07-06T22:15:37Z")

</div>

Hello,

I’m trying to serialize a vtk scene using:

> <https://github.com/Kitware/vtk-js/blob/master/Utilities/ParaView/export-scene-macro.py>

And it’s, in general, quite buggy. I noticed that there was some work done in VTK on improving this. Specifically:

> <https://github.com/Kitware/VTK/blob/master/Web/Python/vtkmodules/web/render_window_serializer.py>

Is there any documentation on the use of this new serializer?

---

<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: [July 7, 2019, 1:49pm UTC](https://discourse.vtk.org/t/light-serialization/1294/2 "2019-07-07T13:49:51Z")

</div>

Those are quite different. The macro was a proof of concept showing how to serialize a scene and render it using an application like [this](https://kitware.github.io/vtk-js/examples/SceneExplorer.html).

The second approach is used to dynamically synchronize the render window over the network. It is used in [ParaView Visualizer](https://kitware.github.io/visualizer/).

Also the macro was replaced by a C++ implementation in [VTK](https://github.com/Kitware/VTK/blob/master/Web/Python/vtkmodules/web/vtkjs_helper.py) where a Python helper is here to zip the directory and also bundle the Glance viewer along with the data.

The new implementation is available in ParaView/master or 5.7 as a web export.

---

<div class="post-metadata">

### Author: ![akaszynski](https://discourse.vtk.org/user_avatar/discourse.vtk.org/akaszynski/32/10751_2.png) [@akaszynski](https://discourse.vtk.org/u/akaszynski)
#### Post date: [July 9, 2019, 7:23pm UTC](https://discourse.vtk.org/t/light-serialization/1294/3 "2019-07-09T19:23:40Z")

</div>

Thanks for your helpful response!

I look forward to using the latest C++ implementation in the next release of VTK.
