# Convert or make a single file

**URL:** https://discourse.vtk.org/t/convert-or-make-a-single-file/3009
**Category:** Support
**Created:** [April 9, 2020, 9:37pm UTC](https://discourse.vtk.org/t/convert-or-make-a-single-file/3009 "2020-04-09T21:37:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rubensrojas](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@rubensrojas](https://discourse.vtk.org/u/rubensrojas)
#### Post date: [April 9, 2020, 9:37pm UTC](https://discourse.vtk.org/t/convert-or-make-a-single-file/3009/1 "2020-04-09T21:37:51Z")

</div>

Hi, i’m new to vtk, and i have been looking for functions or scripts that can convert .vtp, .vtu, .vtm files, to .vtk or maybe .vtp. But i can’t find anything.

What i want to know is if this type of operation is even possible, if so, how?

Or if i can run all these files and then save as just one .vtk or .vtp file.

Obs.: I’m using Python.

---

<div class="post-metadata">

### Author: ![cousinitt](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cousinitt/32/2398_2.png) [@cousinitt](https://discourse.vtk.org/u/cousinitt)
#### Post date: [April 10, 2020, 2:08am UTC](https://discourse.vtk.org/t/convert-or-make-a-single-file/3009/2 "2020-04-10T02:08:25Z")

</div>

There was a [question on StackOverflow](https://stackoverflow.com/questions/11727822/reading-a-vtk-file-with-python) that was not exactly an answer to your question, but it is related. You could also try out [ParaView](https://www.paraview.org), [this page](https://www.paraview.org/Wiki/Animating_legacy_VTK_file_series) describes how you might start converting things.

It is possible to merge the data in the files with [vtkAppendPolyData](https://vtk.org/doc/nightly/html/classvtkAppendPolyData.html), and then save them in most cases.

---

<div class="post-metadata">

### Author: ![rubensrojas](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@rubensrojas](https://discourse.vtk.org/u/rubensrojas)
#### Post date: [April 14, 2020, 12:09am UTC](https://discourse.vtk.org/t/convert-or-make-a-single-file/3009/3 "2020-04-14T00:09:52Z")

</div>

Thank you for the reply!

The StackOverflow question show me some light, but i couldn’t do much so far.

vtkAppendPolyData says that some scalars may be lost.

For now i’m back to the documentation, and being experimental with paraview.

Best regards.
