[Paraview] How to use a filter in a Python script?
Eric E. Monson
emonson at cs.duke.edu
Wed Nov 3 11:20:47 EDT 2010
Hey Hamilton,
You should also try using the Python Trace (and Trace State) functionality now built into ParaView. After (or while) you set up your pipeline in ParaView this will give you a Python script to accomplish the same thing. This page tells a bit about the current (git) version:
http://www.paraview.org/Wiki/Python_GUI_Tools
You'll see the Start Trace and Trace State if you go to Tools->Python Shell, and then click on the Trace tab on the right of the panel.
-Eric
------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group
On Nov 3, 2010, at 10:00 AM, Sebastien Jourdain wrote:
> Hi Hamilton,
>
> You can look at http://www.paraview.org/Wiki/ParaView/Python_Scripting
> and that http://www.paraview.org/Wiki/ParaViewUsersGuide/List_of_filters
>
> Seb
>
> On Tue, Nov 2, 2010 at 10:31 PM, <ghw at accutrol.com> wrote:
>> I am a newbie to Paraview and have little experience programming Python. I
>> would like to know how to call a particular filter from within Python. The
>> only filter I have seen referenced in the Python scripting documentation is
>> Shrink().
>>
>> I want to retrieve the scalar values along a line segment (Plot Over
>> Line(ProbeLine)) that extends through an unstructured 3D grid. I have "The
>> ParaView Guide", "The VTK User's Guide" and "The Visualization Toolkit: An
>> Object-Oriented Approach to 3D Graphics". I don't see how to programmatically
>> do this. I have looked on all of the ParaView web sites that I can find, and
>> in tutorials. I do not even see a list of available filter names.
>>
>> Is there a guide for Python Scripting (chapter 20 of The ParaView Guide is the
>> best I have found) that covers using filters? Example code? Anything? How
>> do you even find the filter names in the documentation?
>>
>> Thanks for any help,
>> Hamilton Woods
>> _______________________________________________
>> 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
>>
> _______________________________________________
> 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
More information about the ParaView
mailing list