[Paraview] VTK access from python

2013-01-26 Thread Demian Wassermann
Dear Paraview Users / Developers, I have just started using version 3.98 and I must say I like it a lot. However, on the binary distribution the number of vtk classes accessible through python scripting was greatly reduced with respect to the previous version. I suspect that because it is now

Re: [Paraview] VTK access from python

2013-01-29 Thread Pat Marion
There's a lot of VTK python modules, and unfortunately they are not all imported with you import paraview.vtk from ParaView's python console. But, all the python modules are shipped with ParaView, as far as I know, they just aren't imported. I wish there was an easy way to import the full set of

Re: [Paraview] VTK access from python

2013-01-29 Thread Sean Ziegeler
FWIW, I've also found that only importing the VTK modules that one needs in a given script shaves off some time during the initialization of the script. On 01/29/13 06:50, Pat Marion wrote: There's a lot of VTK python modules, and unfortunately they are not all imported with you import paravie

Re: [Paraview] VTK access from python

2013-01-29 Thread Pat Marion
That's true. And I think it makes sense for ParaView to selectively import only the parts of VTK that it needs to implement paraview.simple and paraview.servermanager. I find it annoying that paraview.vtk is not equivalent to the standard vtk python. If you run a script with pvpython or pvbatch,

Re: [Paraview] VTK access from python

2013-01-29 Thread Andy Bauer
Well, at least you can still use GetClassName() to figure out the object. I'm wondering how much overhead there is to import paraview.vtk -- any ideas? Also, it's a bit dangerous when running in parallel since that may encourage people to create their own vtk objects in a manner that they didn't in