Thank you for all your help. I ran the module with the modifications but it doesn’t seem to work. What I get on the console is the following:
Traceback (most recent call last):
File “C:/Users/Asus/AppData/Local/NA-MIC/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/Asus/AppData/Local/NA-MIC/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
colorLegendNode = slicer.modules.colors.logic().GetColorLegendDisplayNode(displayable_node)
IndexError: list index out of range
[Qt] This function is deprecated. Use lookFromAxis(const ctkAxesWidget::Axis& axis) instead.
The IndexError persists, which makes me think that the issue is not due to the change from VTKScalarBar to ColorLegend but lies somewhere else.
This results in the progress bar when using the module not moving from 0% (status:initializing execution). The issue is the same as described on this post BoneThicknessMapping does not work . This other post seems to describe the same problem and according to them it worked properly in 3dslicer 4.1.1 Bone Thickness Mapping not functioning .
Thank you anyway for your help and time.