python shell, I'm using "pvpython script.py"


On 15-Jan-09, at 9:20 AM, Utkarsh Ayachit wrote:

Where are you typing the python script: the python shell or the
"Script" parameter for the Programmable Filter/Programmable Source?


On Wed, Jan 14, 2009 at 7:17 PM, Pierre-Olivier Dallaire
<[email protected]> wrote:
Good evening,
I'm trying to import a text file in order to superimpose the results with
some OpenFOAM results.
I'm using a python script to read the text file; however, the basic script
provided at
http://cmake.org/Wiki/Here_are_some_more_examples_of_simple_ParaView_3_python_filters
fails at pdo = self.GetOutput() :

Traceback (most recent call last):
 File "paraview_cvs.py", line 21, in <module>
   pdo = self.GetOutput()
NameError: name 'self' is not defined
Not sure what is wrong - any idea ?
Best regards,
PO

_______________________________________________
ParaView mailing list
[email protected]
http://www.paraview.org/mailman/listinfo/paraview



_______________________________________________
ParaView mailing list
[email protected]
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to