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

# toggle 3D widget visibility (only when running from the GUI)