________________________________________
From: [email protected] [[email protected]] On Behalf 
Of [email protected] [[email protected]]
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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to