How to manage parameterNode in a ScriptedModule

Hi everyone,
I´m trying to save my nodes in a parameter Node to manage them all over the module but I have problems no iniciate it.

def setup(self):
ScriptedLoadableModuleWidget.setup(self)
self.parameterNode = None
logic = MyModuleLogic()
self.parameterNode = logic.getParameterNode()

Everytime I try to use it, I get this error:

‘MRMLCorePython.vtkMRMLScriptedModuleNode’ object is not callable

I don’t see anything wrong in this code or that could lead to the error message that you described. See more information and examples for using parameter nodes in scripted modules in this post: How to save slicer scene with both slicer data and with "self.variables" within custom widget

1 Like