# BoneThicknessMapping does not work

**URL:** <https://discourse.slicer.org/t/bonethicknessmapping-does-not-work/30738>\
**Category:** Support\
**Tags:** extensions\
**Created:** [July 22, 2023, 3:03am UTC](https://discourse.slicer.org/t/bonethicknessmapping-does-not-work/30738 "2023-07-22T03:03:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yanglab](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yanglab/32/66918_2.png) [@Yanglab](https://discourse.slicer.org/u/Yanglab)\
**Post date:** [July 22, 2023, 3:03am UTC](https://discourse.slicer.org/t/bonethicknessmapping-does-not-work/30738/1 "2023-07-22T03:03:38Z")

</div>

Hi guys, I’m try to use bone thickness mapping on my own data and demo data (Predentalsurgery).  
But none of them worked.  
The status kept showing Initializing execution, and the process was permanantly 0%.  
When I checked the python console, it feeded back:

Initializing execution…  
Traceback (most recent call last):  
File “C:/Users/Administrator/Slicer 5.2.2/NA-MIC/Extensions-31382/BoneThicknessMapping/lib/Slicer-5.2/qt-scripted-modules/BoneThicknessMapping.py”, line 521, in click\_execute  
BoneThicknessMappingLogic.set\_scalar\_colour\_bar\_state(0)  
File “C:/Users/Administrator/Slicer 5.2.2/NA-MIC/Extensions-31382/BoneThicknessMapping/lib/Slicer-5.2/qt-scripted-modules/BoneThicknessMapping.py”, line 936, in set\_scalar\_colour\_bar\_state  
ctkBar = slicer.util.findChildren(colorWidget, name=‘VTKScalarBar’)[0]  
IndexError: list index out of range  
[Qt] This function is deprecated. Use lookFromAxis(const ctkAxesWidget::Axis& axis) instead.

Do anyone have any cues what it means? Thanks for you nice guys’ help.

 ![problem1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/a/fa9ac5155dc2809c461cc3bbc21942e2e9b2dae7.png)

---

<div class="post-metadata">

**Author:** ![JulianEG](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/julianeg/32/81839_2.png) [@JulianEG](https://discourse.slicer.org/u/JulianEG)\
**Post date:** [January 29, 2026, 7:15pm UTC](https://discourse.slicer.org/t/bonethicknessmapping-does-not-work/30738/2 "2026-01-29T19:15:45Z")

</div>

With this fix it should work in 3D slicer version 5.10. ["Color Scalar Bar" reworked and upgraded, now it’s called "Color Legend" - #12 by Mik](https://discourse.slicer.org/t/color-scalar-bar-reworked-and-upgraded-now-it-s-called-color-legend/21567/12) .
