How to get InformationPane from Models Module in Python


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.


Model information is shown by a qMRMLModelInfoWidget. For example:

w = slicer.qMRMLModelInfoWidget()

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

1 Like