[Paraview] Fwd: Re: Name query from multi-block data in Python

Favre Jean jfavre at cscs.ch
Thu Mar 4 08:17:36 EST 2010


________________________________________
From: paraview-bounces at paraview.org [paraview-bounces at paraview.org] On Behalf Of Bastil2001 at yahoo.de [Bastil2001 at yahoo.de]
Sent: Wednesday, March 03, 2010 11:59 PM
To: 'ParaView'; Utkarsh Ayachit
Subject: Re: [Paraview] Fwd: Re: Name query from multi-block data in Python

Thanks sounds exactly what I was looking for. However I don't really know how to use it:

source=GetActiveSource()
iter=servermanager.vtkPVCompositeDataInformationIteratior()
dir(iter) -> shows no GetCurrentName()

Thanks Bastian
---------------------

given your source, I'd bet you would need to do the following:


iter = servermanager.vtkPVCompositeDataInformationIterator()
iter.SetDataInformation(source.GetDataInformation().DataInformation)

iter.InitTraversal()
while not iter.IsDoneWithTraversal():
  print iter.GetCurrentName()
  iter.GoToNextItem()



-----------------
Jean M. Favre
Scientific Computing Research
Swiss National Supercomputing Center
CH-6828 Manno
Switzerland


More information about the ParaView mailing list