Having more than one button in a python plugin

Hi all,

In our python plugin, we would like to have two buttons, one that runs a segmentation algorithm and visualizes the output, and the second button should create a mesh from the output and gt_segmentation, and then via “Visualize Mesh or Point Cloud Distances” algo calculate the DSC and visualize the distance between the results.

Is it possible to have two buttons in a python plugin? and if so, a code snippet on how to do this would be very much appreciated.

Thanks for the help,
Farid

Hi Farid,

Adding a button is possible by defining algorithm actions:
https://docs.imfusion.com/python/algorithms.html#adding-actions
Please let us know if something is not clear!

Perfect, thanks! I will try it out