[Paraview-developers] Create programmable source via python shell

David Lonie david.lonie at kitware.com
Fri Aug 26 09:52:23 EDT 2016


On Fri, Aug 26, 2016 at 9:51 AM, David Lonie <david.lonie at kitware.com> wrote:
> 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

Actually, I'm not sure if this is VTK only or if it'd work in ParaView, too...


More information about the Paraview-developers mailing list