I can&#39;t say for sure but my guess is that the slice you created doesn&#39;t intersect your geometry and thus you have 0 points and you won&#39;t get any point data to pseudo-color by. The other possibility is that the slice filter hasn&#39;t been updated yet.<br>
<br>You can try something like self.newSlice.GetDataInformation().GetNumberOfPoints() to see if any points exist in the filter&#39;s output. Make sure to call self.newSlice.UpdatePipeline() before doing that though.<br><br>
Andy<br><br><div class="gmail_quote">On Sun, Feb 24, 2013 at 9:57 AM, Christian Klinge <span dir="ltr">&lt;<a href="mailto:ck156626@fh-muenster.de" target="_blank">ck156626@fh-muenster.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">Hello together,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I wrote a short python script to create slices with local coordinate systems in ParaView. Sometimes then the script should create a new slide with defined parameter about scalar factor, origin and normal vector, the function returns a value error.  The message told me that the point data array cannot be found in the simulation. I tested the function with a lot of different parameters and recognizes that the function does not fail because of the variance of parameters. After repeating of calling the function with the same parameters, the function worked sometimes and it fails. So now I don’t know if it is a mistake of myself or it is a bug in ParaView. <u></u><u></u></p>
<p class="MsoNormal">Maybe you can give me a short answer about it. Thank you all.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I used ParaView on a Linux machine calling the pvbatch with the script as parameter from the shell. The script is append at the end of this mail.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Regards,<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888"><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Christian<u></u><u></u></p></font></span></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>