Slicer-4.8.0/lib/Slicer-4.8/qt-scripted-modules/SegmentStatistics.py", line 176, in onApply
self.logic.getParameterNode().SetParameter("Segmentation", self.segmentationSelector.currentNode().GetID()) AttributeError: 'NoneType' object has no attribute 'GetID'
When you need to use a Slicer module from another module, you must almost always use the moduleās logic directly, instead of manipulating the other moduleās user interface.
In general, you can find example of how to use the module logic in module tests.
For example, you can use Segment statistics module like this:
However, AddNewNodeByClass has the advantage that it is shorter and it creates nodes taking into account default node properties that are defined in the scene (you can override default properties for any nodes, such as default colors, file save formats, etc).
Hi Andras,
I am writing a scriopt for segment mesher . how to use it using scripting. I have tried below. Please guide. I do not know the complete list of parameters to set for segment mesher.