Very cool! Thanks Pat<br><br><br><div class="gmail_quote">On Thu, Jul 9, 2009 at 12:19 PM, pat marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
This is because paraview does not import all the vtk libraries, I<br>
suppose to save time, but maybe there are other reasons.<br>
<br>
Try this from paraview:<br>
<br>
print paraview.vtk.__file__<br>
<br>
And you'll get /pat/to/Utilities/VTKPythonWrapping/paraview/vtk/__init__.pyc<br>
<br>
Now open this file in an editor (replace .pyc with .py) and you'll see<br>
which vtk libraries are being imported from paraview. Now compare<br>
these to the vtk/__init__.py file when you import vtk from the vtk<br>
install.<br>
<br>
To get to the vtkDistributedStreamTracer, you can do this:<br>
<br>
from libvtkParallelPython import *<br>
<br>
or on windows: from vtkParallelPython import *<br>
<br>
<br>
Pat<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Thu, Jul 9, 2009 at 2:47 PM, Bam Ting<<a href="mailto:bampingting@gmail.com">bampingting@gmail.com</a>> wrote:<br>
> in a python shell when I do a<br>
><br>
> from paraview import vtk<br>
><br>
> using my paraview install, the resulting imported VTK object is not the same<br>
> as when I do a<br>
><br>
> import vtk<br>
><br>
> from my vtk install, built from the same ParaView source tree.<br>
><br>
> For example vtkDistributedStreamTracer is missing from the vtk object<br>
> imported from the paraview install. Actually comparing a ''dir(vtk)'' on<br>
> both show the ParaView vtk module is way small compared to the VTK vtk<br>
> object. ^The obvious thing to do is to build a serparate VTK build from my<br>
> ParaView sources, but I wonder why is the paraview vtk python module so<br>
> slim? Are the missing classes in there somewhere else?<br>
><br>
> Bam<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
</blockquote></div><br>