[Paraview] FILE > OPEN plugin

Jean Favre jfavre at cscs.ch
Thu Jan 8 09:21:17 EST 2009


On 08, Jan 2009 01:33 PM, mirko heuegger <mheuegger at gmail.com> wrote:

>you mean, using the _same_ paraView state-file, but different
>'data'-files?
>if so, this is not really possible.

There is a solution, using the Python Shell.

1) load your existing state file
2) identify the name of your data object in the pipeline browser. It is
usually the filename stripped of its directory name
3) open the Python Shell and type

pm = servermanager.ProxyManager()
reader = pm.GetProxy('sources', 'filename')        # where 'filename' is
the string found above in 2)

# your data object is likely to have a name called FileName.
# you may print it to verify
reader.FileName
# you may change it to a new filename
reader.FileName = "your new filename"

4) Forcing the render window to refresh itself will be enough to cause
the update of the whole pipeline. Otherwise, you get a handle to your
view and call StillRender, i.e.

view = servermanager.GetRenderView()
view.StillRender()

--
Jean --
Swiss National Supercomputing Centre



More information about the ParaView mailing list