Hi,
I want to do an operation when ever there is a change in the value of the slider in the red widget
Hi,
I want to do an operation when ever there is a change in the value of the slider in the red widget
Hi I am trying to handle sequence browser frame slider , I found a way to get the index, but I want to connect a function when the slider value changes how can I achieve it
sequenceBrowserNode = slicer.mrmlScene.GetFirstNodeByClass(“vtkMRMLSequenceBrowserNode”)
if sequenceBrowserNode:
sequenceBrowserNode.AddObserver(sequenceBrowserNode.ModifiedEvent, self.onFrameChanged)
this was the method I used Kindly help me out as
You can add an observer to the sequence browser MRML node that calls your python function whenever the node is modified.