[Paraview] Python Shell, Scripting data input

Berk Geveci berk.geveci at kitware.com
Fri Dec 14 09:43:55 EST 2007


Which version of paraview are you using? You may be using the older
python interface with a newer paraview. Look here for details:
http://paraview.org/Wiki/ParaView:pvpython (follow the link to the
servermanager module documentation at the top).

-berk

On 12/14/07, Alexander Wille <alexander.wille at mytum.de> wrote:
> Hello everyone,
>
> I regularly apply the same set of filters with very slight parameter modifications to similar data sets of the ever same format. Everytime I have to build about the same filter pipeline. I would like to automate that using the Python Shell. I would like to load a script into the python shell which does all these steps for me. I already have a script which adds and configures all the filters, but I still have to open the data files manually, because:
>
> # My Python Code:
> # - Loading EnSight Data -
> pm = servermanager.ProxyManager()
> readerP = pm.NewProxy("sources","ensight")
> readerP.GetProperty("CaseFileName").SetElement(0, "SomeEnsightCaseFile.case")
> readerP.UpdateVTKObjects()
> pm.RegisterProxy("sources","fluid",readerP) # THIS METHOD FAILS, stating "Failed to locate server for newly registered proxy ("sources", "fluid")"
> # - Filter configuration -
> # ...
>
> Does anyone have an idea what causes this error and how it could be solved? Any suggestions would be appreciated!
>
>
> Cheers,
> Alexander Wille
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>


More information about the ParaView mailing list