If you want something graphical why don't you just use the lookmarks ? Load the data you want and then just apply your lookmark. Jacques
2009/1/9 Jorge Mario Mazo <[email protected]> > Hi everyone > > I have tried the python way and it works, but it´s kind of ugly, and boss > kind of wants a more graphic thing, so what I´m doing is making a filechoser > in qt and then TRYING to pass the file name to the python script! > so far no success. > > > A couple of minutes ago I had this idea: write a file choser in python/TK, > and run the script from paraview, any ideas if that would work? > > anyway thank to all, good tips > > > > > On Thu, Jan 8, 2009 at 9:21 AM, Jean Favre <[email protected]> wrote: > >> On 08, Jan 2009 01:33 PM, mirko heuegger <[email protected]> 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 >> >> _______________________________________________ >> ParaView mailing list >> [email protected] >> http://www.paraview.org/mailman/listinfo/paraview >> > > > _______________________________________________ > ParaView mailing list > [email protected] > http://www.paraview.org/mailman/listinfo/paraview > >
_______________________________________________ ParaView mailing list [email protected] http://www.paraview.org/mailman/listinfo/paraview
