Hi,
I'm using the latest CVS build of Paraview (on Ubuntu) and am getting some
errors when I try to do python scripting from the Python shell. I start
ParaView and bring up the python shell, and type the simple command:
reader=LegacyVTKReader()
As soon as I enter this command, the error
When you creating the readers using python shell from the GUI (not
pvpython or pvbatch), it's recommended that you set the FileName in
the constructor itself. So try:
reader = LegacyVTKReader(FileNames=foo.vtk)
Utkarsh
On Fri, Aug 21, 2009 at 10:04 AM, Karl Battamskarlbatt...@gmail.com wrote:
Thanks! That did it!
Next problem, along similar lines. I want to simply volume render a vtk
file I have. If I do everything from within the paraview app, it works
fine. But if I try to do the following from the python shell (or pvpython)
it seg faults on me:
Karl,
I think you'll find that you still don't get the same results as in
the GUI. The GUI also handles the creation of a default color lookup
table and opacity function when you switch to volume rendering. Here
is some code to do the same in python. It's a mix of paraview.simple
API and
Hi Karl,
The volume representation needs a set of valid scalars. In the GUI,
the color-by scalars are automatically switched for you when you
change the representation combobox to Volume. In python you'll need
to do something like this:
SetDisplayProperties(reader,