<div dir="ltr"><div>Hello<br><br>Hide(FindSource(“3rd-Ventricle.ply"))<br><br></div>should do the trick.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Wed, May 4, 2016 at 3:35 PM, Hallock, Kevin <span dir="ltr"><<a href="mailto:Kevin.Hallock@pfizer.com" target="_blank">Kevin.Hallock@pfizer.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Hi, </div>
<div><br>
</div>
<div>I would like to write a script that hides all visible pipeline objects and then shows individual objects based on their names in the pipeline browser.  </div>
<div><br>
</div>
<div>Specifically, I have imported multiple PLY files (e.g. 3rd-Ventricle.ply) and added source filter objects (e.g. cylinders).  When I use Hide(), it will hide the active object, but if I try Hide(“3rd-Ventricle.ply”) I receive the following error: </div>
<div><br>
</div>
<div>
<p style="margin:0px"><span style="font-family:'Courier';font-size:13pt;color:#ff0000">Traceback (most recent call last):</span></p>
<p style="margin:0px"><span style="font-family:'Courier';font-size:13pt;color:#ff0000">File "<string>", line 6, in <module></span></p>
<p style="margin:0px"><span style="font-family:'Courier';font-size:13pt;color:#ff0000">File "/Applications/paraview.app/Contents/Python/paraview/simple.py", line 418, in Hide</span></p>
<p style="margin:0px"><span style="font-family:'Courier';font-size:13pt;color:#ff0000">controller.Hide(proxy, proxy.Port, view)</span></p>
<p style="margin:0px"><span style="font-family:'Courier';font-size:13pt;color:#ff0000">AttributeError: 'str' object has no attribute 'Port'</span></p>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Kevin</div><span class="HOEnZb"><font color="#888888">
<div><br>
</div>
<div>
<div>
<div>-- </div>
<div>
<div>Kevin Hallock</div>
<div>Visualization and Modeling, Quantitative Medicine</div>
<div>Neuroscience and Pain Research Unit</div>
<div>Worldwide Research and Development</div>
<div>Pfizer Inc</div>
<div>610 Main Street</div>
<div>Cambridge, MA 02139</div>
<div>Email: <a href="mailto:kevin.hallock@pfizer.com" target="_blank">kevin.hallock@pfizer.com</a></div>
<div>Fax: <a href="tel:845-474-4001" value="+18454744001" target="_blank">845-474-4001</a></div>
</div>
</div>
</div>
</font></span></div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
<br></blockquote></div><br></div>