# How to use the function indexing in vtkGlyph2D

**URL:** https://discourse.vtk.org/t/how-to-use-the-function-indexing-in-vtkglyph2d/12959
**Category:** Support
**Created:** [December 22, 2023, 8:39am UTC](https://discourse.vtk.org/t/how-to-use-the-function-indexing-in-vtkglyph2d/12959 "2023-12-22T08:39:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![baker-Xie](https://discourse.vtk.org/user_avatar/discourse.vtk.org/baker-xie/32/8169_2.png) [@baker-Xie](https://discourse.vtk.org/u/baker-Xie)
#### Post date: [December 22, 2023, 8:39am UTC](https://discourse.vtk.org/t/how-to-use-the-function-indexing-in-vtkglyph2d/12959/1 "2023-12-22T08:39:47Z")

</div>

vtkglyph2D have function SetIndexModeToScalar, but how can I pass the index array to vtkglyph2D? I want to show different char using this class.
