Hi all,
I would like to connect ctksliderwidget to GUI using the parameter node.
Could you find the error in my codes?
@parameterPack
class SliderRange:
Minimum: float
Maximum: float
Value: float
@parameterNodeWrapper
class ModulesParameterNode:
# GUIs
frameSliderValue: SliderRange
thicknessSliderValue: SliderRange
self.mapping = {
"frameSliderValue": self.widget.frameSlider,
"thicknessSliderValue": self.widget.projectionSlider,
}
self._parameterNodeGuiTag = self._parameterNode.connectParametersToGui(self.mapping)