<div dir="ltr"><div>no direct method, but still quite easy.<br><br>ss = GetSources()<br>for s in ss:<br></div>  Hide(ss[s])<br><br><div>Regards,<br></div></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 4:33 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>Thanks!  Is there a way to hide all visible pipeline objects?  </div>
<div><br>
</div>
<div>Kevin</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>Mathieu Westphal <<a href="mailto:mathieu.westphal@kitware.com" target="_blank">mathieu.westphal@kitware.com</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, May 4, 2016 at 9:41 AM<br>
<span style="font-weight:bold">To: </span>Kevin Hallock <<a href="mailto:Kevin.Hallock@pfizer.com" target="_blank">Kevin.Hallock@pfizer.com</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:paraview-developers@paraview.org" target="_blank">paraview-developers@paraview.org</a>" <<a href="mailto:paraview-developers@paraview.org" target="_blank">paraview-developers@paraview.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Paraview-developers] Script commands that hide/show pipeline objects<br>
</div><div><div class="h5">
<div><br>
</div>
<div>
<div>
<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>
<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><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="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=CwMFaQ&c=UE1eNsedaKncO0Yl_u8bfw&r=qGFCsM9Qjq3aeVt5MRS91N125WRsKH5G5-a71j341EM&m=1g3UMDoFa-cwhQK9wtg4edOu2A5c1p0DOmW9iBPeZuA&s=bddd_ZIOeCLqVxChpKkk9nqiTYG7ca9q4ND4agsnNsI&e=" rel="noreferrer" target="_blank">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=CwMFaQ&c=UE1eNsedaKncO0Yl_u8bfw&r=qGFCsM9Qjq3aeVt5MRS91N125WRsKH5G5-a71j341EM&m=1g3UMDoFa-cwhQK9wtg4edOu2A5c1p0DOmW9iBPeZuA&s=RECG_NFAc7hWZGZ1FrGIFOhi4YBI9yfHxnvTUbbc08k&e=" rel="noreferrer" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3DParaview-2Ddevelopers&d=CwMFaQ&c=UE1eNsedaKncO0Yl_u8bfw&r=qGFCsM9Qjq3aeVt5MRS91N125WRsKH5G5-a71j341EM&m=1g3UMDoFa-cwhQK9wtg4edOu2A5c1p0DOmW9iBPeZuA&s=CrS-1BLl7FNx6hg56ZzJBNj7p1VOK_lAvkgMpuClF8Q&e=" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__public.kitware.com_mailman_listinfo_paraview-2Ddevelopers&d=CwMFaQ&c=UE1eNsedaKncO0Yl_u8bfw&r=qGFCsM9Qjq3aeVt5MRS91N125WRsKH5G5-a71j341EM&m=1g3UMDoFa-cwhQK9wtg4edOu2A5c1p0DOmW9iBPeZuA&s=7b3i5eGGYBWb1szkciQ5fdIcSzsNhATIcnqjMEBcsqw&e=" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div></div></span>
</div>

</blockquote></div><br></div>