[Paraview] Python programmable source

Manochehr Bahavar manoch at iris.washington.edu
Tue Feb 13 12:16:40 EST 2018


Hello,

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: 

Traceback (most recent call last):
File "<string>", line 20, in <module>
File "<string>", line 82, in RequestData
File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", line 454, in GetDisplayProperties
return GetRepresentation(proxy, view)
File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", line 437, in GetRepresentation
view = active_objects.view
File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", line 2213, in get_view
self.__get_selection_model("ActiveView").GetCurrentProxy())
File "/Applications/ParaView-5.4.1-822-g597adef982.app/Contents/Python/paraview/simple.py", line 2191, in __get_selection_model
pxm = servermanager.ProxyManager(session)
RuntimeError: maximum recursion depth exceeded

How can I address this problem?

Thanks,

—manoch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180213/d0247265/attachment.html>


More information about the ParaView mailing list