[Paraview-developers] Script commands that hide/show pipeline objects

Mathieu Westphal mathieu.westphal at kitware.com
Wed May 4 09:41:27 EDT 2016


Hello

Hide(FindSource(“3rd-Ventricle.ply"))

should do the trick.

Mathieu Westphal

On Wed, May 4, 2016 at 3:35 PM, Hallock, Kevin <Kevin.Hallock at pfizer.com>
wrote:

> Hi,
>
> 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.
>
>
> 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:
>
> Traceback (most recent call last):
>
> File "<string>", line 6, in <module>
>
> File "/Applications/paraview.app/Contents/Python/paraview/simple.py", line
> 418, in Hide
>
> controller.Hide(proxy, proxy.Port, view)
>
> AttributeError: 'str' object has no attribute 'Port'
>
> Thanks,
>
> Kevin
>
> --
> Kevin Hallock
> Visualization and Modeling, Quantitative Medicine
> Neuroscience and Pain Research Unit
> Worldwide Research and Development
> Pfizer Inc
> 610 Main Street
> Cambridge, MA 02139
> Email: kevin.hallock at pfizer.com
> Fax: 845-474-4001
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at:
> http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160504/743ada03/attachment.html>


More information about the Paraview-developers mailing list