[Paraview] Python Shell, Scripting data input
Alexander Wille
alexander.wille at mytum.de
Fri Dec 14 09:36:46 EST 2007
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
More information about the ParaView
mailing list