[Paraview] Writing csv data in python script
Casey Goodlett
casey.goodlett at kitware.com
Fri Aug 8 11:40:28 EDT 2014
Do you get any error messages in the python console or output window?
What type of data does your source produce polydata, unstructured grid, etc?
On Fri, Aug 8, 2014 at 11:30 AM, denis cohen <denis.cohen at gmail.com> wrote:
> Hi Casey,
>
> I've tried this like in your suggestion:
>
> SetActiveSource(IntegrateVariables1)
> DataSetCSVWriter()
> FileName="foo_points.csv"
> FieldAssociation = "Points"
> UpdatePipeline()
>
> and other similar commands but none produced a csv file. Any hints?
>
> Thanks
>
> Denis
>
>
>
>
> On Tue, Aug 5, 2014 at 7:38 PM, Casey Goodlett <casey.goodlett at kitware.com
> > wrote:
>
>> Denis,
>>
>> You could look here
>> <http://public.kitware.com/gitweb?p=VeloView.git;a=blob;f=VelodyneHDL/python/veloview/applogic.py;h=4a0d7d546fe57c58a5e073964fc97dcaff03a51e;hb=HEAD>
>> on lines 468-476 for how this is done in VeloView. You can ignore the
>> rotateCSVFile function call.
>>
>>
>>
>>
>> On Sat, Aug 2, 2014 at 5:34 AM, denis cohen <denis.cohen at gmail.com>
>> wrote:
>>
>>> 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
>>>
>>>
>>> _______________________________________________
>>> 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://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>>
>> --
>> Casey B. Goodlett, Ph.D.
>> Technical Leader
>> Kitware, Inc. - North Carolina Office
>> http://www.kitware.com
>> (919) 969-6990 x310
>>
>
>
--
Casey B. Goodlett, Ph.D.
Technical Leader
Kitware, Inc. - North Carolina Office
http://www.kitware.com
(919) 969-6990 x310
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140808/1e27110f/attachment-0001.html>
More information about the ParaView
mailing list