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

Hallock, Kevin Kevin.Hallock at pfizer.com
Wed May 4 09:35:26 EDT 2016


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<mailto:kevin.hallock at pfizer.com>
Fax: 845-474-4001
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160504/9e6fb22d/attachment.html>


More information about the Paraview-developers mailing list