[Paraview] Server Manager and Python wrapping

Andy Cedilnik andy.cedilnik at kitware.com
Mon Aug 29 16:22:44 EDT 2005


Hi Wiktor,

Currently ParaView server manager can be used only through the python
interpreter build in ParaView called pvpython. This is a regular full
featured python interpreter that initializes MPI and ServerManager.

Ok, as far as example goes, should be something like this:

import libvtkPVServerManagerPython
pvsm = libvtkPVServerManagerPython

foo = pvsm.vtkSMObject()
proxyManager = foo.GetProxyManager()
smApplication = foo.GetApplication()

pvTemp542 = proxyManager.NewProxy("sources", "P3DReader")
proxyManager.RegisterProxy("sources", "pvTemp542", pvTemp542)
pvTemp542.GetProperty("FileName").SetElement(0, "/some/file/name.xyz")
pvTemp542.GetProperty("QFileName").SetElement(0, "/some/file/name.q")
pvTemp542.UpdateVTKObjects()

and so on.

       Andy


Wiktor Moskwa wrote:

>
> Hello,
>
> I'm interested in using ParaView's Server Manager in Python.
> I've noticed that wrapping code has been added recently to
> CVS repository and I wonder if anyone could provide the simplest
> example of using it.
>
> I cannot figure out what should I do to initialize an application
> that uses Server Manager. Is creating vtkSMApplication and
> invoking Initialize() method enough? Does it start data/render servers?
>
> Thanks in advance,
> Wiktor Moskwa
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview



-- 
Andy Cedilnik
Kitware Inc.



More information about the ParaView mailing list