[Paraview] Exporting to vrml with python in 3.98 or 3.14.1
Sven Buijssen
sven.buijssen at tu-dortmund.de
Thu Jan 17 14:38:56 EST 2013
Raphael,
You did not specify any input for the VRML exporter. Try using
vrml.SetView(RenderView)
vrml.Write()
at the end of your script.
Sven
Raphael Münster wrote, On 17.01.2013 19:50:
> Hello,
>
> I am trying to export data to vrml with a Python script in 3.98 and
> 3.14.1, but no vrml output is produced.
> Using the GUI I get the vrml output... The python trace does not show
> the code to export to vrml sadly...
> I use the following code:
>
>>>> from paraview.simple import *
>>>> testdata_vtk = LegacyVTKReader(
> FileNames=['/pathtodata/testdata.vtk'] )
>>>> RenderView = GetRenderView()
>>>> DataRepresentation = Show()
>>>> exporters = servermanager.createModule("exporters")
>>>> vrml = exporters.VRMLExporter()
>>>> vrml.FileName="/exportpath/testdata.vrml"
>>>> vrml.Write()
>
> As I said the file /exportpath/testdata.vrml is not produced... Any
> ideas how to get this working?
>
> Thanks,
> Raphael
More information about the ParaView
mailing list