[Paraview] Learning PV internals helped by the PV-GUI and python

Robert Maynard RobertJMaynard at gmail.com
Thu Nov 29 08:41:57 EST 2007


The Dump.py script was designed using the old python interface to paraview.
3.2 introduced the new servermanager python interface, and nobody has
developed a new Dump.py that works with it.

On Nov 29, 2007 6:36 AM, Sylvester Gerardson <sylvester.gerardson at gmail.com>
wrote:

> Jordi,
>
> Your Dump.py script looks like a tool that could be really useful to me.
> However, when using the script with PV3.2.0 (with several sources and
> filters created) I only get the output listed below (and which doesn't
> even
> run).
> Do you know what am I doing wrong?
>
> Thanks you.
>
> Regards,
> Sylvester
>
>
> #!/usr/local/bin/pvpython
> #                                                    <script>.py
> import paraview
> if     paraview.ActiveConnection == None : CONSOLE = True
> else                                     : CONSOLE = False
> if CONSOLE:                                           # init Conn and
> RenderM
>  paraview.ActiveConnection = paraview.Connect()
>  renderM = paraview.CreateRenderWindow()
> else:
>  renders = paraview.pyProxyManager
> ().GetProxiesInGroup("multirendermodule",
>
> paraview.ActiveConnection)
>  renderM = renders.values()[0].GetRenderModules()[0]
>
> if CONSOLE:
>  renderM.ResetCamera()
>  renderM.StillRender()
>  raw_input("Enter to finish")
>  #import time ; time.sleep(2)
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/paraview/attachments/20071129/c56d03be/attachment.html


More information about the ParaView mailing list