[Paraview] Writing csv data in python script

denis cohen denis.cohen at gmail.com
Sat Aug 2 05:34:40 EDT 2014


Hi,
New to python scripting. How can one output a csv file inside a python
script/macro?
I am trying the wiki:
>>> writer = CreateWriter(".../foo.csv", source)
>>> writer.FieldAssociation = "Points" # or "Cells"
>>> writer.UpdatePipeline()
>>> del writer

But I get:
Traceback (most recent call last):
  File "<string>", line 173, in <module>
AttributeError: 'str' object has no attribute 'UpdatePipeline'

Thanks for any help.

Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140802/71c27f4d/attachment.html>


More information about the ParaView mailing list