Clip Filter "Show Plane" not hideable from python script

I’m applying a clip filter to a box data for a basic assignment. It’s pretty simple, I do some basic manipulation on the box_data then I apply the clip filter to it. However, I can’t seem to find a way to hide the plane when i wanna screenshot what I did.

Looking at documentation and properties of the Clip, online blogs and other help sites (dating as far as 15 years ago), there is no way to acces that “Show Plane” property that is visible in the GUI. Even when checking the states, nothing changes between the visualization with and without the checkbox checked. It might be quite simple as I am new to paraview, but please help me

The script is pretty short so I’ll directly paste it here :

----------------------------------------

box_data = ExodusIIReader(FileName=“box.ex2”)
box_data.UpdatePipeline()
bounds = box_data.GetDataInformation().GetBounds()

----------------------------------------

First frame

----------------------------------------

animationScene = GetAnimationScene()
animationScene.AnimationTime = 0.0

renderView = GetActiveViewOrCreate(‘RenderView’)

box_display = Show(box_data, renderView)

Surface representation

box_display.Representation = ‘Surface’

Color by disp

ColorBy(box_display, (‘POINTS’, ‘disp’))

----------------------------------------

Set view to -Z direction

----------------------------------------

renderView.CameraPosition = [0, 0, 1]   # camera on +Z

----------------------------------------

Z-normal Clip

----------------------------------------

clip = Clip(Input=box_data)
clip.ClipType = ‘Plane’
clip.Scalars = [‘POINTS’, ‘disp’]
clip.ClipType.Origin = [bounds[1]/2,bounds[3]/2, bounds[5]/2]
clip.ClipType.Normal = [0, 0, 1]  # Z-normal
clip_display = Show(clip, renderView)
clip_display.Representation = ‘Surface’

Set view to +Z direction

renderView.CameraPosition = [0, 0, -1]
renderView.CameraFocalPoint = [0, 0, 0]
renderView.CameraViewUp = [0, 1, 0]

----------------------------------------

Color map to Blue-Red Rainbow (HSV)

----------------------------------------

color_map = GetColorTransferFunction(‘disp’)
color_map.ApplyPreset(‘Blue to Red Rainbow’, True)

Show scalar bar on top of the box

clip_display.SetScalarBarVisibility(renderView, True)
scalar_bar = GetScalarBar(color_map, renderView)
scalar_bar.Orientation = ‘Horizontal’
scalar_bar.WindowLocation = ‘Upper Center’
renderView.ResetCamera()
renderView.UseInteractiveRenderingForScreenshots = 0

Render()

----------------------------------------

Save screenshot & state

----------------------------------------

SaveScreenshot(“q01.png”)
SaveState(“state_01.pvsm”)