<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>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?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Matt</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>David E DeMarle <<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, August 25, 2016 at 9:12 PM<br>
<span style="font-weight:bold">To: </span>Matthew Czech <<a href="mailto:Matthew.Czech@pfizer.com">Matthew.Czech@pfizer.com</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>" <<a href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Paraview-developers] Create programmable source via python shell<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Sure is.
<div><br>
</div>
<div>Here is a minimal example.<br>
</div>
<div><br>
</div>
<div>
<div>from paraview.simple import *</div>
<div>programmableSource1 = ProgrammableSource()</div>
<div>programmableSource1.Script = 'print "Hello World"'</div>
<div>programmableSource1.UpdatePipeline()</div>
</div>
<div><br>
</div>
<div>In general, try Tools->Start Trace, make a source or anything really, Tools->Stop Trace to see how to do things.</div>
<div><br>
</div>
<div>good luck</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature" data-smartmail="gmail_signature">David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: 518-881-4909</div>
</div>
<br>
<div class="gmail_quote">On Thu, Aug 25, 2016 at 4:21 PM, Czech, Matthew <span dir="ltr">
<<a href="mailto:Matthew.Czech@pfizer.com" target="_blank">Matthew.Czech@pfizer.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Hello,</div>
<div><br>
</div>
<div>Is it possible to create a programmable source via the python shell? Any information on this is much appreciated.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Matt</div>
</div>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="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=" rel="noreferrer" target="_blank">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="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=" rel="noreferrer" target="_blank">
http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="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=" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=<wbr>Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="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=" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview-<wbr>developers</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>