# How to export GLTF using python

**URL:** https://discourse.paraview.org/t/how-to-export-gltf-using-python/13031
**Category:** ParaView Support
**Tags:** python
**Created:** [October 12, 2023, 3:08pm UTC](https://discourse.paraview.org/t/how-to-export-gltf-using-python/13031 "2023-10-12T15:08:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![HenriLamarre](https://discourse.paraview.org/user_avatar/discourse.paraview.org/henrilamarre/32/12580_2.png) [@HenriLamarre](https://discourse.paraview.org/u/HenriLamarre)
#### Post date: [October 12, 2023, 3:08pm UTC](https://discourse.paraview.org/t/how-to-export-gltf-using-python/13031/1 "2023-10-12T15:08:57Z")

</div>

Hi,  
I have a scene I made to render a VTK file of a physics simulation.  
I export my scene in GLTF for using it in blender.

Now I want to apply my scenes to a bunch of more vtk files (the rest of the simulation) so I figured I would save my paraview scene as a python file to apply it reccursively to all my vtk files.

Is there a python function to export my scene to GLTF?  
Thank you!

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [October 12, 2023, 8:22pm UTC](https://discourse.paraview.org/t/how-to-export-gltf-using-python/13031/2 "2023-10-12T20:22:15Z")

</div>

You can try  
ExportView(‘test.gltf’, view=renderView1)

I got this using Tools / Start Trace  
than, File / Export Scene / choose file type GLTF  
Tools / Stop Trace
