Thanks Jean - I also found this example when looking through the mailing
list:
8---
try: paraview.simple
except: from paraview.simple import *
Sphere()
view = paraview.simple._create_view(SpreadSheetView)
Show()
Render()
exporters =
d'oh accidentally click send!
I've added the bug for python trace to mantis:-
http://www.paraview.org/Bug/view.php?id=11892
http://www.paraview.org/Bug/view.php?id=11892Regards,
Paul
On 24 February 2011 09:42, Paul Edwards paul.m.edwa...@gmail.com wrote:
Thanks Jean - I also found this
Also look at:
http://www.vtk.org/Wiki/ParaView/Python_Scripting#Exporting_CSV_Data
writer = CreateWriter(.../foo.csv, source)
writer.FieldAssociation = Points # or Cells
writer.UpdatePipeline()
del writer
Utkarsh
On Thu, Feb 24, 2011 at 4:51 AM, Paul Edwards paul.m.edwa...@gmail.com wrote:
w = CSVWriter()
w.FileName = /local/data/tmp/foo.csv
#s1 should be of type Table
w.Input = s1
w.UpdatePipeline()
-
Jean M. Favre
Swiss National Supercomputing Center
___
Powered by www.kitware.com
Visit other Kitware open-source