[Paraview] Apply isovolume filter using Python

Arshpreet Singh arsh840 at gmail.com
Sun Mar 6 20:03:52 EST 2016


I am making a programmable source filter to read date file and apply
IsoVolume filter but it is producing Error.


Following is my Python Code:

<code>

from paraview import servermanager
from paraview.simple import Show,Render
from paraview.simple import OpenDataFile
from paraview.simple import IsoVolume

servermanager.Connect()
reader = OpenDataFile("/home/metal-machine/Desktop/11.vts")
IsoVolume(reader,'0.25','0.75')

</code>




The error I got is as follows:

<error>


Traceback (most recent call last):

File "<string>", line 19, in <module>

File "<string>", line 8, in RequestData

File "/home/metal-machine/para/lib/paraview-5.0/site-packages/paraview/simple.py",
line 1529, in CreateObject

raise RuntimeError, "Expecting a proxy as input."

RuntimeError: Expecting a proxy as input.



</error>

Am I missing something?

-- 

Thanks
Arshpreet Singh

I am Sikh boy, Learning by doing and Learning by teaching is my religion.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/


More information about the ParaView mailing list