<div>Hi,</div>
<div> </div>
<div>I would like to define a custom programmable filter to work with MultiBlockDatasets. In that filter, I need to access to the name of each block being processed. By "name", I mean the information given in the "Information>Data Hierarchy" tree.</div>
<div> </div>
<div>Could you explain me how to access to that information in a programmable filter?</div>
<div> </div>
<div>Fort information, here is a code example of what I would like to do:</div>
<div> </div>
<div>[code]</div>
<div>from paraview.vtk import dataset_adapter as DA<br><br>input = self.GetInputDataObject(0, 0)</div>
<div>output = self.GetOutputDataObject(0)</div>
<div><br>def process_block(input_block, output_block) :<br> <br> data = input_block.PointData['data']</div>
<div> if data is None :<br> print 'data is None'<br> <br> else :<br> # <<<< get the name of input_block >>>><br> print 'do something with data'<br> <br> <br>iter = DA.MultiCompositeDataIterator([input, output])</div>
<div>for input_block, output_block in iter:<br> process_block(input_block, output_block)</div>
<div> </div>
<div>[/code]</div>
<div> </div>
<div> </div>
<div>B. L.</div>