# Render a specific array from a VTI file

**URL:** https://discourse.vtk.org/t/render-a-specific-array-from-a-vti-file/4514
**Category:** Support
**Created:** [October 29, 2020, 2:22am UTC](https://discourse.vtk.org/t/render-a-specific-array-from-a-vti-file/4514 "2020-10-29T02:22:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Soumya\_Dutta](https://discourse.vtk.org/user_avatar/discourse.vtk.org/soumya_dutta/32/2539_2.png) [@Soumya\_Dutta](https://discourse.vtk.org/u/Soumya_Dutta)
#### Post date: [October 29, 2020, 2:22am UTC](https://discourse.vtk.org/t/render-a-specific-array-from-a-vti-file/4514/1 "2020-10-29T02:22:24Z")

</div>

Hi all,

I am trying to do volume rendering on a specific array from a vti data. The vti data can have multiple arrays. This is similar to select an array from the drop down list to do volume rendering. I am not sure how to select the array to be used.

Thanks for your time and help,  
Soumya

---

<div class="post-metadata">

### Author: ![Soumya\_Dutta](https://discourse.vtk.org/user_avatar/discourse.vtk.org/soumya_dutta/32/2539_2.png) [@Soumya\_Dutta](https://discourse.vtk.org/u/Soumya_Dutta)
#### Post date: [October 29, 2020, 3:27pm UTC](https://discourse.vtk.org/t/render-a-specific-array-from-a-vti-file/4514/2 "2020-10-29T15:27:00Z")

</div>

I was able to solve the problem, here is the solution for others who may need it:  
here data is vtkimagedata with multiple arrays.

```
data = reader.GetOutput()
data.GetPointData().SetScalars(reader.GetOutput().GetPointData().GetArray(arr_name))
```
