<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thank you Andy for the detailed info. I will look into the Python’s trace functionality.<div class=""><br class=""></div><div class="">—manoch<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 13, 2018, at 9:24 AM, Andy Bauer <<a href="mailto:andy.bauer@kitware.com" class="">andy.bauer@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">The programmable source was designed to work on the server-side data only. By the fact that you're using the built-in server (i.e. the ParaView GUI and pvserver run in the same process space) you have access to client-side information like representation type but that stuff is only available after you've fully executed the programmable source script. <br class=""><br class=""></div>You may want to look at using the Python trace functionality and then saving that as a macro. That should be a more consistent solution that also works with a remote pvserver.<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Feb 13, 2018 at 12:16 PM, Manochehr Bahavar <span dir="ltr" class=""><<a href="mailto:manoch@iris.washington.edu" target="_blank" class="">manoch@iris.washington.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class="">Hello,<div class=""><br class=""></div><div class="">I have created a Python programmable source to populate and display a vtkPolyData. All works well, however, I would like to change display settings via the same Python code. I found out that after I press The Apply button I can modify the script to set the representation type to ‘Points’ but if I place a GetDisplayProperties statement at the end of the script initially to gain access to these properties, I will get: </div><div class=""><br class=""></div><div class=""><div style="margin:0px" class=""><div style="margin:0px" class=""><span style="font-size:13pt;color:rgb(128,0,0)" class="">Traceback (most recent call last):</span></div><div style="margin:0px" class=""><span style="font-size:13pt;color:rgb(128,0,0)" class="">  File "<string>", line 20, in <module></span></div><div style="margin:0px" class=""><span style="font-size:13pt;color:rgb(128,0,0)" class="">  File "<string>", line 82, in RequestData</span></div><div style="margin:0px" class=""><span style="font-size:13pt;color:rgb(128,0,0)" class="">  File "/Applications/ParaView-5.4.1-<wbr class="">822-g597adef982.app/Contents/<wbr class="">Python/paraview/simple.py", line 454, in GetDisplayProperties</span></div><div style="margin:0px" class=""><span style="font-size:13pt;color:rgb(128,0,0)" class="">    return GetRepresentation(proxy, view)</span></div><div style="margin:0px" class=""><span style="font-size:13pt;color:rgb(128,0,0)" class="">  File "/Applications/ParaView-5.4.1-<wbr class="">822-g597adef982.app/Contents/<wbr class="">Python/paraview/simple.py", line 437, in GetRepresentation</span></div><div style="margin:0px" class=""><span style="font-size:13pt;color:rgb(128,0,0)" class="">    view = active_objects.view</span></div><div style="margin:0px" class=""><span style="font-size:13pt;color:rgb(128,0,0)" class="">  File "/Applications/ParaView-5.4.1-<wbr class="">822-g597adef982.app/Contents/<wbr class="">Python/paraview/simple.py", line 2213, in get_view</span></div><div style="margin:0px" class=""><span style="font-size:13pt;color:rgb(128,0,0)" class="">    self.__get_selection_model("<wbr class="">ActiveView").GetCurrentProxy()<wbr class="">)</span></div><div style="margin:0px" class=""><span style="font-size:13pt;color:rgb(128,0,0)" class="">  File "/Applications/ParaView-5.4.1-<wbr class="">822-g597adef982.app/Contents/<wbr class="">Python/paraview/simple.py", line 2191, in __get_selection_model</span></div><div style="margin:0px" class=""><span style="font-size:13pt;color:rgb(128,0,0)" class="">    pxm = servermanager.ProxyManager(<wbr class="">session)</span></div><div style="margin:0px" class=""><span style="font-size:13pt;color:rgb(128,0,0)" class="">RuntimeError: maximum recursion depth exceeded</span></div></div></div><div style="margin:0px" class=""><span style="font-size:13pt;color:rgb(128,0,0)" class=""><br class=""></span></div><div style="margin:0px" class=""><div class="">How can I address this problem?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">—manoch</div><div class=""><br class=""></div></div></div><br class="">______________________________<wbr class="">_________________<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">http://www.kitware.com/<wbr class="">opensource/opensource.html</a><br class="">
<br class="">
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank" class="">http://paraview.org/Wiki/<wbr class="">ParaView</a><br class="">
<br class="">
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank" class="">http://markmail.org/search/?q=<wbr class="">ParaView</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="https://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank" class="">https://public.kitware.com/<wbr class="">mailman/listinfo/paraview</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>