Unckeck checkbox programatically

I’m writing a python script and I wanted to know if there was a way to uncheck the Show Plane checkbox by code.

Screen Shot 2020-02-13 at 16.26.06

Did you try the python tracing? ‘Start Trace’ in the tools menu, click ‘show interactive trace’ and uncheck that box, see if anything is recorded…

That was helpful! The result

# find source
slice1 = FindSource('Slice1')

# set active source
SetActiveSource(slice1)

# toggle 3D widget visibility (only when running from the GUI)
Hide3DWidgets(proxy=slice1.SliceType)