<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div apple-content-edited="true" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><font class="">Ok, I think I found a way to do it.</font></div></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><font class=""><br class=""></font></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">First get the proxy of the filter itself (<a href="http://public.kitware.com/pipermail/paraview/2011-November/023336.html" class="">http://public.kitware.com/pipermail/paraview/2011-November/023336.html</a>):</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">import paraview.servermanager as sm</div><div class="">proxies = sm.ProxyManager().GetProxiesInGroup("sources").values()</div><div class="">selfProxy = [p for p in proxies if p.GetClientSideObject() is self][0]</div><div class=""><br class=""></div><div class="">Then get the selected points of the proxy’s input like this (<a href="http://stackoverflow.com/a/27805049" class="">http://stackoverflow.com/a/27805049</a>):</div></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">proxy = paraview.simple.GetActiveSource()<div class="">active_selection = proxy.GetSelectionInput(proxy.Port)</div></div><div class=""><br class=""></div><div class="">/Allan</div></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 17 Mar 2015, at 14:03, Allan Lyckegaard <<a href="mailto:alyckegaard@xnovotech.com" class="">alyckegaard@xnovotech.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Hi Paraview users,<br class=""><br class="">I have been searching this list and the documentation but without luck.<br class=""><br class="">I am working on a python programmable filter with two vtkimagedata as inputs. In the paraview GUI, both input vtkimagedata has an associated selection picked by “Select Points With Polygon”.<br class=""><br class="">How do I in the python programmable filter find out what points have been selected in the two input vtkimagedata?<br class=""><br class="">/Allan</div></blockquote></div><br class=""></body></html>