[Paraview] Python questions

2011-02-10 Thread James Perry
Hello, We are attempting to use Paraview to visualise some data from a simulation. At present we have a standalone Python script that converts the data into a legacy VTK file which Paraview can read. Ideally we'd like to integrate the script into Paraview as a programmable source so that the

Re: [Paraview] Python questions

2011-02-10 Thread Favre Jean
Hello James I don't believe this is a bug. I have used the ProgrammableSource and was able to render a grid without any difficulty. What is missing in your procedure is most likely setting the WholeExtent. try loading this script and you'll get a rendered image paraview --script=state.py

Re: [Paraview] Python questions

2011-02-10 Thread James Perry
Hi Jean, Thanks a lot - that solves my first problem! Regards, James On 10/02/2011 12:30, Favre Jean wrote: Hello James I don't believe this is a bug. I have used the ProgrammableSource and was able to render a grid without any difficulty. What is missing in your procedure is most

[Paraview] Some paraview python questions

2009-05-02 Thread David Doria
1) Adding a view after adding a source with python I have the following script which adds a sphere to the pipeline browser #!/usr/bin/pvpython #must be run from inside paraview! from paraview import servermanager sphere = servermanager.sources.Sphere() pm=servermanager.ProxyManager()