# Export scene

**URL:** https://discourse.vtk.org/t/export-scene/6731
**Category:** Support
**Created:** [September 30, 2021, 8:31am UTC](https://discourse.vtk.org/t/export-scene/6731 "2021-09-30T08:31:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![naffrancois](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/f08c70/32.png) [@naffrancois](https://discourse.vtk.org/u/naffrancois)
#### Post date: [September 30, 2021, 8:31am UTC](https://discourse.vtk.org/t/export-scene/6731/1 "2021-09-30T08:31:23Z")

</div>

Dear all,

Please forgive me if this question has been already answered, I could not find clear explanations in other threads.

I am currently working with a simple java-vtk window in which I do several things like set image background, create points, lines, surfaces etc.

I was wondering if there is a simple way to save everything from the scene to a file, with all properties like camera, point sizes, colors, array names, well everything. Then I could later import that file and keep on adding things.

I had a first try with VRML exporter/importer but some properties are lost in the process (array names for example). I was thinking maybe something similar to load state/save state used in Paraview.

Thank you for your help !

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [October 2, 2021, 9:44pm UTC](https://discourse.vtk.org/t/export-scene/6731/2 "2021-10-02T21:44:07Z")

</div>

Hello, friend,

I think you’re better off by using the several subclasses of `vtkDataWriter` ([https://vtk.org/doc/nightly/html/classvtkDataWriter.html](https://vtk.org/doc/nightly/html/classvtkDataWriter.html)) to save the objects into `.vtk` file format. You can restore them by using the matching `vtkDataReader` subclasses: [https://vtk.org/doc/nightly/html/classvtkDataReader.html](https://vtk.org/doc/nightly/html/classvtkDataReader.html). Exporting to other formats often results in some loss due to unsupported features.

cheers,

Paulo

---

<div class="post-metadata">

### Author: ![naffrancois](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/f08c70/32.png) [@naffrancois](https://discourse.vtk.org/u/naffrancois)
#### Post date: [October 3, 2021, 8:17am UTC](https://discourse.vtk.org/t/export-scene/6731/3 "2021-10-03T08:17:46Z")

</div>

Thank you Paolo, I will have a look 🙂
