# This RenderView will always save as a blue background even when a WhiteBackground is selected?

**URL:** https://discourse.paraview.org/t/this-renderview-will-always-save-as-a-blue-background-even-when-a-whitebackground-is-selected/1800
**Category:** ParaView Support
**Created:** [May 9, 2019, 2:22am UTC](https://discourse.paraview.org/t/this-renderview-will-always-save-as-a-blue-background-even-when-a-whitebackground-is-selected/1800 "2019-05-09T02:22:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![shuhao](https://discourse.paraview.org/user_avatar/discourse.paraview.org/shuhao/32/195_2.png) [@shuhao](https://discourse.paraview.org/u/shuhao)
#### Post date: [May 9, 2019, 2:22am UTC](https://discourse.paraview.org/t/this-renderview-will-always-save-as-a-blue-background-even-when-a-whitebackground-is-selected/1800/1 "2019-05-09T02:22:06Z")

</div>

Through some sort of unknown manipulation, I’ve ended up with a PVSM that always produces a the default blue background when saving a screenshot, even when I select the WhiteBackground option.

I noted that if I recreated the render view from scratch, it will go away for a bit before coming back. I suspect it might be because I use a screenshotting python script that does the following, but I cannot reproduce it, so maybe it’s a red herring.

```
for t in ts:
  print("processing {}".format(t))
  view.ViewTime = t
  # Hide, Show here..

  view.Update()
  SaveScreenshot(
    os.path.join(basedir, "{}.png".format(int(view.ViewTime))),
    view,
    ImageResolution=[1280, 720],
    OverrideColorPalette="WhiteBackground"
  )

```

Luckily, I’ve figured out that if I deleted all of my filters/sources in the pipeline after creating this renderview and save the resulting PVSM, it will still consistently screenshot only a blue background and I’ve attached it here: [always-blue.pvsm](https://discourse.paraview.org/uploads/default/original/2X/3/3dbb090e74b18efd7b263c090898a0b8257a9901.pvsm) (1.2 MB). What am I doing wrong here?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 9, 2019, 8:14am UTC](https://discourse.paraview.org/t/this-renderview-will-always-save-as-a-blue-background-even-when-a-whitebackground-is-selected/1800/2 "2019-05-09T08:14:08Z")

</div>

I’ve not been able to understand why your .pvsm is not working correctly, however you can fix that by doing the following :

- Open ParaView
- Load your state file
- Save State as a python state file
- Close ParaView
- Open ParaView
- Load your python state file
- Save State over your initial pvsm state file

---

<div class="post-metadata">

### Author: ![shuhao](https://discourse.paraview.org/user_avatar/discourse.paraview.org/shuhao/32/195_2.png) [@shuhao](https://discourse.paraview.org/u/shuhao)
#### Post date: [May 10, 2019, 6:19pm UTC](https://discourse.paraview.org/t/this-renderview-will-always-save-as-a-blue-background-even-when-a-whitebackground-is-selected/1800/3 "2019-05-10T18:19:21Z")

</div>

Is this worthy of a bug report? I also tried to click the “Restore Default” on the background color in the render view properties window and nothing changed.

I’ll try your solution with my complete PVSM to see if it can correctly restore everything and fix the issue.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 13, 2019, 8:11am UTC](https://discourse.paraview.org/t/this-renderview-will-always-save-as-a-blue-background-even-when-a-whitebackground-is-selected/1800/4 "2019-05-13T08:11:19Z")

</div>

To report the bug we would need to have a way to recreate the issue and _corrupt_ a pvsm using ParaView.
