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

Sylvester Gerardson sylvester.gerardson at gmail.com
Mon Dec 3 06:43:45 EST 2007


Thank you for your reply.

Do you know of any plans to update Dump.py to the new servermanager python
interface?

Regards,
Sylvester

________________________________

From: thorin.hax at gmail.com [mailto:thorin.hax at gmail.com] On Behalf Of Robert
Maynard
Sent: Thursday, November 29, 2007 2:42 PM
To: Sylvester Gerardson; paraview at paraview.org
Subject: Re: [Paraview] Learning PV internals helped by the PV-GUI and
python


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
<http://www.paraview.org/mailman/listinfo/paraview> 
	





More information about the ParaView mailing list