How to add slice intersection button in gui?

I’m trying to create a button in my module that works just like the slice intersection checkbox. When I click on the button I want to toggle the slice intersection visibility. What would I put in def onClick() or how do I toggle slice intersection using python?

Hi @akshay_pillai, there is an example of toggling slice intersections in the Slicer script repository. It involves setting the slice intersection visibility. Let us know how it goes.

1 Like