# Get the texture color and display in polydata by sliding the mouse

**URL:** https://discourse.vtk.org/t/get-the-texture-color-and-display-in-polydata-by-sliding-the-mouse/10129
**Category:** Support
**Created:** [December 9, 2022, 3:18am UTC](https://discourse.vtk.org/t/get-the-texture-color-and-display-in-polydata-by-sliding-the-mouse/10129 "2022-12-09T03:18:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ahhhstudy](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ahhhstudy/32/6249_2.png) [@ahhhstudy](https://discourse.vtk.org/u/ahhhstudy)
#### Post date: [December 9, 2022, 3:18am UTC](https://discourse.vtk.org/t/get-the-texture-color-and-display-in-polydata-by-sliding-the-mouse/10129/1 "2022-12-09T03:18:42Z")

</div>

I’m a newbie in vtk, I’m facing a problem now, I have a stl model, I have projectedTexture mapping on it, now I’m trying to pass the mouse, read the texture color of the mouse position and display it, I think it should be The texture is converted into a scalar, and then the coordinates are obtained through pick to obtain its scalar value. How should I do it? best wishes！
