# Issue with opacity setting through Trace option

**URL:** https://discourse.paraview.org/t/issue-with-opacity-setting-through-trace-option/2302
**Category:** ParaView Support
**Created:** [July 25, 2019, 10:22pm UTC](https://discourse.paraview.org/t/issue-with-opacity-setting-through-trace-option/2302 "2019-07-25T22:22:05Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![benoitpaillard](https://discourse.paraview.org/user_avatar/discourse.paraview.org/benoitpaillard/32/958_2.png) [@benoitpaillard](https://discourse.paraview.org/u/benoitpaillard)
#### Post date: [July 25, 2019, 10:22pm UTC](https://discourse.paraview.org/t/issue-with-opacity-setting-through-trace-option/2302/1 "2019-07-25T22:22:05Z")

</div>

Hi all, I found a buggy behavior when using the “start Trace” method to script a process.  
Getting a screenshot with a modified opacity gives an empty window when using Trace in 5.6, try script attached.

Using save state to a .py file does work though.[test.py](https://discourse.paraview.org/uploads/short-url/jLmqNB8eitY8KqgfSYtLZaqDmcz.py) (2.8 KB)

Cheers

---

<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: [July 26, 2019, 7:46am UTC](https://discourse.paraview.org/t/issue-with-opacity-setting-through-trace-option/2302/2 "2019-07-26T07:46:21Z")

</div>

No problem on Linux here :  
What I did :

- Download your script
- Open ParaView 5.6 release for Linux
- View -\> Python Shell
- Run Script -\> test.py
- View and screenshot are fine.

---

<div class="post-metadata">

### Author: ![benoitpaillard](https://discourse.paraview.org/user_avatar/discourse.paraview.org/benoitpaillard/32/958_2.png) [@benoitpaillard](https://discourse.paraview.org/u/benoitpaillard)
#### Post date: [July 26, 2019, 7:52am UTC](https://discourse.paraview.org/t/issue-with-opacity-setting-through-trace-option/2302/3 "2019-07-26T07:52:37Z")

</div>

I fully agree, however launching it from the command line - which is what I’m doing since the process is automatic -, does not work.

Try:  
pvpython test.py  
pvbatch test.py

Thank you for your help.

---

<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: [July 26, 2019, 7:54am UTC](https://discourse.paraview.org/t/issue-with-opacity-setting-through-trace-option/2302/4 "2019-07-26T07:54:49Z")

</div>

`pvpython test.py` generates a perfect screenshot and no window, which is expected.

---

<div class="post-metadata">

### Author: ![benoitpaillard](https://discourse.paraview.org/user_avatar/discourse.paraview.org/benoitpaillard/32/958_2.png) [@benoitpaillard](https://discourse.paraview.org/u/benoitpaillard)
#### Post date: [July 26, 2019, 8:12am UTC](https://discourse.paraview.org/t/issue-with-opacity-setting-through-trace-option/2302/5 "2019-07-26T08:12:45Z")

</div>

Hi,  
Through paraview gui, I get:

 ![test_fromParaviewGUI](https://discourse.paraview.org/uploads/default/original/2X/3/34db5bb182d6e15257f5ee83457ca59b888abbba.png)  
Through pvpython I get : ![test_frompvpython](https://discourse.paraview.org/uploads/default/original/2X/0/0e3e6a48a2d8440800e761f2ea96c1198a99a1dc.png)  
Please also find enclosed a screenshot of my PV config ![Screenshot%20from%202019-07-26%2010-08-56](https://discourse.paraview.org/uploads/default/original/2X/8/84d8cf883a317b50bf2376e2a1b4da320e5596b9.png)

---

<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: [July 26, 2019, 8:32am UTC](https://discourse.paraview.org/t/issue-with-opacity-setting-through-trace-option/2302/6 "2019-07-26T08:32:41Z")

</div>

Could you try with our last release 5.6.1 or with our last RC, 5.7.1-RC1 ?  
[https://www.paraview.org/download/](https://www.paraview.org/download/)

---

<div class="post-metadata">

### Author: ![benoitpaillard](https://discourse.paraview.org/user_avatar/discourse.paraview.org/benoitpaillard/32/958_2.png) [@benoitpaillard](https://discourse.paraview.org/u/benoitpaillard)
#### Post date: [July 26, 2019, 8:45am UTC](https://discourse.paraview.org/t/issue-with-opacity-setting-through-trace-option/2302/7 "2019-07-26T08:45:52Z")

</div>

All good with both newer versions. Sorry for that. Should have checked.

---

<div class="post-metadata">

### Author: ![benoitpaillard](https://discourse.paraview.org/user_avatar/discourse.paraview.org/benoitpaillard/32/958_2.png) [@benoitpaillard](https://discourse.paraview.org/u/benoitpaillard)
#### Post date: [July 26, 2019, 9:38am UTC](https://discourse.paraview.org/t/issue-with-opacity-setting-through-trace-option/2302/8 "2019-07-26T09:38:56Z")

</div>

Hello again,

Actually it does work with osmesa version, but not with ParaView-5.7.0-RC1-MPI-Linux-64bit

---

<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: [July 26, 2019, 9:53am UTC](https://discourse.paraview.org/t/issue-with-opacity-setting-through-trace-option/2302/9 "2019-07-26T09:53:00Z")

</div>

I can’t reproduce sadly. What is your GPU ?

---

<div class="post-metadata">

### Author: ![benoitpaillard](https://discourse.paraview.org/user_avatar/discourse.paraview.org/benoitpaillard/32/958_2.png) [@benoitpaillard](https://discourse.paraview.org/u/benoitpaillard)
#### Post date: [July 26, 2019, 2:27pm UTC](https://discourse.paraview.org/t/issue-with-opacity-setting-through-trace-option/2302/10 "2019-07-26T14:27:19Z")

</div>

The same issue happens on various NVIDIA chips, under ubuntu and the messy graphic driver… it might be 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: [July 31, 2019, 8:16am UTC](https://discourse.paraview.org/t/issue-with-opacity-setting-through-trace-option/2302/11 "2019-07-31T08:16:10Z")

</div>

If you could be more specific, I could try to reproduce.
