<div dir="ltr"><div><div><div>Hi Claudio,<br><br></div>Thanks for reporting this issue. It's a bug in the script, I think it might only be an issue if using the script in ParaView 4.0, is that the version you are using? Anyway, to correct it, please edit line 179 and change:<br>
<br> exportViewToDirectory(GetRenderView(), outDir)<br><br></div>to<br><br> exportViewToDirectory(smp.GetRenderView(), outDir)<br><br></div>I will upload a new version of the script, too, with this correction.<br><br>
Pat<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 19, 2013 at 12:36 PM, petrinic <span dir="ltr"><<a href="mailto:petrinic@student.ethz.ch" target="_blank">petrinic@student.ethz.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div>Hi, </div><div>I'm trying to export paraview data to my Desktop with the macro "paraview_to_kiwi.py", so that I can put it on Kiwiviewer on my iPhone.</div>
<div>When I start macro it doesn't work, and in the Phyton shell I have this output:</div><div>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-size:13pt;font-family:'Courier'">>>> </span><span style="font-family:'Courier';font-size:13pt;color:#009600">exporting to /Users/claudiop/Desktop/PVExport-2013-06-19T18:33:23</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:13pt;color:#ff0000">Traceback (most recent call last):</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:13pt;color:#ff0000"> File "<string>", line 202, in <module></span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:13pt;color:#ff0000"> File "<string>", line 192, in exportToDesktop</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:13pt;color:#ff0000"> File "<string>", line 179, in exportInDirectory</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'Courier';font-size:13pt;color:#ff0000">NameError: global name 'GetRenderView' is not defined</span></p>
</div><div><br></div><div><br></div><div><br></div><div>Does anyone have an Idea how to solve this problem and make it works?</div><div>Thank you</div><div>All the best,</div><div><br></div><div>Claudio</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></div>