# Vtk display scalar values

**URL:** <https://discourse.slicer.org/t/vtk-display-scalar-values/8604>\
**Category:** Support\
**Tags:** vtk, 3d-model\
**Created:** [September 28, 2019, 7:03pm UTC](https://discourse.slicer.org/t/vtk-display-scalar-values/8604 "2019-09-28T19:03:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogertrullo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rogertrullo/32/4380_2.png) [@rogertrullo](https://discourse.slicer.org/u/rogertrullo)\
**Post date:** [September 28, 2019, 7:03pm UTC](https://discourse.slicer.org/t/vtk-display-scalar-values/8604/1 "2019-09-28T19:03:35Z")

</div>

Hi,  
I am generating some vtk files where I have added Scalar values to the data. I can visualize the data correctly in the model module, but I was wondering if would it be possible to see the actual scalar value for example in the data probe?

Thanks!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 28, 2019, 7:21pm UTC](https://discourse.slicer.org/t/vtk-display-scalar-values/8604/2 "2019-09-28T19:21:11Z")

</div>

You can copy-paste this script into the Python interactor to display model scalar value at the current crosshair position: [https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get\_scalar\_values\_at\_surface\_of\_a\_model](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get_scalar_values_at_surface_of_a_model)
