[Paraview] How to use a filter in a Python script?

Sebastien Jourdain sebastien.jourdain at kitware.com
Wed Nov 3 10:00:12 EDT 2010


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
>


More information about the ParaView mailing list