I am using the Dynamic Modeler Module in my python script.
For the ROI Cut Tool, I set the input model, input ROI and output model and so far this works perfectly.
But I want the surface to be capped. In the Dynamic Modeler widget there is an option “Cap surface” with a checkbox. How can I set this attribute with python?
I figured out how to set the attributes:
dynamicModelerNode.SetAttribute(“ROICut.CapSurface”, _ )
but what value do i need to put to make it work? It only takes a string.
I tried finding the attributes with their possible values like this:
roiCutTool = slicer.vtkSlicerDynamicModelerROICutTool()
for i in range(roiCutTool.GetNumberOfInputParameters()):
print(roiCutTool.GetNthInputParameterAttributeName(i))
print(roiCutTool.GetNthInputParameterName(i))
print(roiCutTool.GetNthInputParameterPossibleValues(i))
print(roiCutTool.GetNthInputParameterDescription(i))
but for the possible values of ROICut.CapSurface, it returns None.