[Paraview] Python Info Seems Wrong

Kent Eschenberg eschenbe at psc.edu
Tue Mar 4 16:51:04 EST 2008


The book strongly suggests using "dir" and "help" to learn about the Python 
options.The "help" command says

    "Please note that some of the methods accessible
    through the Proxy class are not listed by help()
    because the Proxy objects forward unresolved
    attributes to the underlying object.To get the
    full list, see also dir(proxy.SMProxy)."

So I used pvpython from 3.2.1 on CentOS 5 to run the following to see the full 
list:

===
from paraview import servermanager
servermanager.Connect()
implFuncModule = servermanager._createModule( "implicit_functions" )
cutF = implFuncModule.Plane()
print dir(cutF.SMProxy)
help(cutF)
===

"dir" does not list any routines for getting or setting "Normal". I expected a 
"GetNormal" since there is a "GetOrigin".

Both "dir" and "help" describe "Offset" which doesn't exist in vtkPlane! That 
is, according to the documentation for the C++ class vtkPlane generate by 
Doxygen when I compliled from source.

Any ideas what is going on?

TIA!
Kent
Pittsburgh Supercomuting Center


More information about the ParaView mailing list