<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Simon,<br>
<br>
Fetching the data to the client is generally a bad idea. Instead you
could use a python programmable filter which allows you to operate
on the data in place on the server side.
<a class="moz-txt-link-freetext" href="http://www.paraview.org/Wiki/Python_Programmable_Filter">http://www.paraview.org/Wiki/Python_Programmable_Filter</a><br>
<br>
Burlen<br>
<br>
<div class="moz-cite-prefix">On 05/09/2014 10:44 AM, Su, Simon M CTR
USARMY ARL (US) wrote:<br>
</div>
<blockquote
cite="mid:F02E4EC9F4B4BA4189BBDC8BF3B2AD820ECDAD06@umechp9h.easf.csd.disa.mil"
type="cite">
<pre wrap="">Classification: UNCLASSIFIED
Caveats: NONE
Hello,
Are there examples python script on accessing the raw data from the data
loaded in paraview from python script?
If I have the data loader selected on ParaView GUI and then I do the
following from the Python Shell,
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">tt = GetActiveSource()
tt.ElementVariables.Available
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">['CAUCHY_STRESS2XX', 'CAUCHY_STRESS2YY', 'CAUCHY_STRESS2ZZ',
'CAUCHY_STRESS2XY', 'CAUCHY_STRESS2YZ', 'CAUCHY_STRESS2XZ']
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">dtt = servermanager.Fetch(tt)
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">use composite data append
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">dtt
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">(vtkMultiBlockDataSet)0x9441c50
How do I get the raw data for 'CAUCHY_STRESS2XX'?
And since I have to fetch the data to the client side, what do I need to do
to the data that I calculated and placed in the data structure that I
created on the client side to make it available to ParaView (for example, I
want to color the Surface using the newly calculated variable).
thanks
-simon
Classification: UNCLASSIFIED
Caveats: NONE
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
</body>
</html>