Re: [Paraview] Exporting to vrml with python in 3.98 or 3.14.1

2013-01-17 Thread Sven Buijssen
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
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Exporting to vrml with python in 3.98 or 3.14.1

2013-01-17 Thread Raphael Münster

On 17.01.2013 20:38, Sven Buijssen wrote:

You did not specify any input for the VRML exporter. Try using

   vrml.SetView(RenderView)
   vrml.Write()

at the end of your script.

Sven

Thanks Sven,

that did it ;)

Raphael

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview