<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Is there a way to conduct this procedure all in one fell swoop in the Python Shell?</blockquote><div><br></div><div>Yes. You may want to write your Python script in a text file that you can run in ParaView's Python Shell via the "Run Script" button.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> The main things I am curious about are 1) whether I can load a data from a Python array into Paraview as x, y, and z coordinates and</blockquote><div><br></div><div>Yes. Do you have your data in numpy arrays? If so, see this series of blog posts on Numpy and ParaView for more info: <a href="http://www.kitware.com/blog/home/post/709">http://www.kitware.com/blog/home/post/709</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">2) whether there’s a way to control the creation of a Programmable Filter from the Python shell.<br></blockquote><div><br></div><div>Yes. </div><div><br></div>programmableSource1 = ProgrammableSource()<br>programmableSource1.Script = 'import vtk'<br>programmableSource1.ScriptRequestInformation = ''<br>programmableSource1.PythonPath = ''<div><br></div><div>Note that this requires you to write the Python script for the Programmable Source as a string in your main Python script. Of course, you can also load it from a file or some other source you may have.</div><div><br></div><div>HTH,</div><div>Cory</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<br>
--<br>
Eli Medvescek<br>
Duke University '17 | Biomedical Engineering<br>
<a href="tel:520.780.6888" value="+15207806888">520.780.6888</a><br>
<a href="mailto:eli.medvescek@duke.edu">eli.medvescek@duke.edu</a><br>
<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div></div>