[Paraview-developers] Create programmable source via python shell

Czech, Matthew Matthew.Czech at pfizer.com
Fri Sep 2 16:22:17 EDT 2016


This is very useful, thank you. I am having an issue now where when I run a programmable source via python shell the animation functionality doesn’t work. If I manually copy and paste script for programmable source and apply there is no issue. If I run my python shell script and then go into the programmable source script and manually hit apply without changing its code it starts working as well. Has anyone dealt with something like this before?

Thanks,
Matt

From: David E DeMarle <dave.demarle at kitware.com<mailto:dave.demarle at kitware.com>>
Date: Thursday, August 25, 2016 at 9:12 PM
To: Matthew Czech <Matthew.Czech at pfizer.com<mailto:Matthew.Czech at pfizer.com>>
Cc: "paraview-developers at paraview.org<mailto:paraview-developers at paraview.org>" <paraview-developers at paraview.org<mailto:paraview-developers at paraview.org>>
Subject: Re: [Paraview-developers] Create programmable source via python shell

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<mailto: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<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=DQMFaQ&c=UE1eNsedaKncO0Yl_u8bfw&r=0SaCkNDOHVGsusGR4_amwqR0W5SRBsJn61JOPo4P4ko&m=wR1oRwjPDTn1SUZd8UvyQJ2es0Urp-yat1afDZSXhKc&s=V8DfxKevfGOw2c-cfVObVX8Audvq697h-8vBVovyQ64&e=>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DQMFaQ&c=UE1eNsedaKncO0Yl_u8bfw&r=0SaCkNDOHVGsusGR4_amwqR0W5SRBsJn61JOPo4P4ko&m=wR1oRwjPDTn1SUZd8UvyQJ2es0Urp-yat1afDZSXhKc&s=YsLOrKJwwJppiAsT_EF-dLE3DU6Q6wzW6lzGSWzAyFA&e=>

Search the list archives at: http://markmail.org/search/?q=Paraview-developers<https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3DParaview-2Ddevelopers&d=DQMFaQ&c=UE1eNsedaKncO0Yl_u8bfw&r=0SaCkNDOHVGsusGR4_amwqR0W5SRBsJn61JOPo4P4ko&m=wR1oRwjPDTn1SUZd8UvyQJ2es0Urp-yat1afDZSXhKc&s=19WpKFpTtXyL5GwgUaMeD5ls28FPcZy9zBHUBBscIGQ&e=>

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview-developers<https://urldefense.proofpoint.com/v2/url?u=http-3A__public.kitware.com_mailman_listinfo_paraview-2Ddevelopers&d=DQMFaQ&c=UE1eNsedaKncO0Yl_u8bfw&r=0SaCkNDOHVGsusGR4_amwqR0W5SRBsJn61JOPo4P4ko&m=wR1oRwjPDTn1SUZd8UvyQJ2es0Urp-yat1afDZSXhKc&s=UG8FfpfBjBU2cSWVvKHmXF3M6IA65vGP47OlokSdbrk&e=>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160902/73498b27/attachment.html>


More information about the Paraview-developers mailing list