# How to extract data from a vtkInformation?

**URL:** https://discourse.vtk.org/t/how-to-extract-data-from-a-vtkinformation/3684
**Category:** Support
**Created:** [July 1, 2020, 8:56pm UTC](https://discourse.vtk.org/t/how-to-extract-data-from-a-vtkinformation/3684 "2020-07-01T20:56:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![scotsman60](https://discourse.vtk.org/user_avatar/discourse.vtk.org/scotsman60/32/6000_2.png) [@scotsman60](https://discourse.vtk.org/u/scotsman60)
#### Post date: [July 1, 2020, 8:56pm UTC](https://discourse.vtk.org/t/how-to-extract-data-from-a-vtkinformation/3684/1 "2020-07-01T20:56:47Z")

</div>

Hello!!!

I’m trying to recover data from a vtkInformation instance that I recover from vtkMultiBlockDataSet meta data.

I can print the vtkInformation and I see the value of the “NAME” information - which is what I want to access, but I can’t figure out how to actually recover the value.

Given

```
mbds #This is an instance of a vtkMultiBlockDataSet
nmds_iter = mbds.NewIterator()
nmds_iter.VisitOnlyLeavesOff()
nmds_iter.SkipEmptyNodesOff()
nmds_iter.InitTraversal()
nmds_iter.GoToFirstItem()
meta_data = nmds_iter.GetCurrentMetaData()
num_keys = meta_data.GetNumberOfKeys()
print(meta_data)

```

produces,

vtkInformation (0000026BA289B230)  
Debug: Off  
Modified Time: 1573  
Reference Count: 2  
Registered Events: (none)  
NAME: Assembly 1

“Assembly 1” is the data I’m trying to recover.

How can I do this?

Thanks in advance,

Doug

---

<div class="post-metadata">

### Author: ![scotsman60](https://discourse.vtk.org/user_avatar/discourse.vtk.org/scotsman60/32/6000_2.png) [@scotsman60](https://discourse.vtk.org/u/scotsman60)
#### Post date: [July 1, 2020, 10:16pm UTC](https://discourse.vtk.org/t/how-to-extract-data-from-a-vtkinformation/3684/2 "2020-07-01T22:16:11Z")

</div>

OK,

I figured it out…

```
        name = meta_data.Get(vtk.vtkCompositeDataSet.NAME())

```

Doug
