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