[Paraview-developers] Create programmable source via python shell

David Lonie david.lonie at kitware.com
Fri Aug 26 09:51:32 EDT 2016


On Thu, Aug 25, 2016 at 9:27 PM, Joshua Murphy
<Joshua.Murphy at lasp.colorado.edu> wrote:
> I was just about to ask a very similar question, but I was wondering how to
> create a source in pvpython without using the programmable source.  I have a
> larger script that I would like to generate the source, but I am having
> trouble figuring out how to get my vtkStructuredGrid data into a source that
> can be visualized on a pipeline.  Any suggestions for this use case?

If you've already got a data object you want to use in a pipeline,
check out vtkTrivialProducer:

http://www.vtk.org/doc/nightly/html/classvtkTrivialProducer.html

HTH,
Dave


More information about the Paraview-developers mailing list