[Paraview] Export X3D Files via Python >version 3.8

Andrea Beck beck at iag.uni-stuttgart.de
Wed May 9 11:02:01 EDT 2012


Hey folks,
I'm looking for a way to export X3D files with a python script for 
Paraview version 3.14.
In v 3.8, what worked was:

from paraview.simple import *
exporters=servermanager.createModule("exporters")
Cone()
Show()
SetActiveView(GetRenderView())
Render()
x3dExporter=exporters.X3DExporter(View=view, 
FileName="/home/iagbeck/demo/foo.x3d")
x3dExporter.Write()

but that won't work in any version > 3.8 (see also bug tracker report 
here: http://vtk.org/Bug/view.php?id=12738). 
<http://vtk.org/Bug/view.php?id=12738>

Is there anyone who knows how to do that? Alternatively, if you have 
some code snippets about exporting / importing files (tecplot bins) 
lying around, please let me know!

Thanks for the help!

Andrea
<http://vtk.org/Bug/view.php?id=12738>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120509/90bf976d/attachment.htm>


More information about the ParaView mailing list