How to get InformationPane from Models Module in Python

Hello,

I would like to get some information from the “Information Panel” at the models module, like Volume or Surface Area for example. I know how to get info from the Display panel but I am not sure how to get from the Information panel.

Thanks,
Eleni

Model information is shown by a qMRMLModelInfoWidget. For example:

w = slicer.qMRMLModelInfoWidget()
w.setMRMLModelNode(myModelNode)
w.show()

If you don’t need a widget just the numbers, then you can get it as it is done in the widget.

1 Like