[Paraview-developers] Create programmable source via python shell

David E DeMarle dave.demarle at kitware.com
Thu Aug 25 21:12:51 EDT 2016


Sure is.

Here is a minimal example.

from paraview.simple import *
programmableSource1 = ProgrammableSource()
programmableSource1.Script = 'print "Hello World"'
programmableSource1.UpdatePipeline()

In general, try Tools->Start Trace, make a source or anything really,
Tools->Stop Trace to see how to do things.

good luck

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Thu, Aug 25, 2016 at 4:21 PM, Czech, Matthew <Matthew.Czech at pfizer.com>
wrote:

> Hello,
>
> Is it possible to create a programmable source via the python shell? Any
> information on this is much appreciated.
>
> Thanks,
> Matt
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=
> Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160825/d6ec188b/attachment.html>


More information about the Paraview-developers mailing list