Don't know what you mean I placed these types of lines everywhere there is the window call (At least all I could find) still opacity remains the same.
I thought at first it was maybe a script conflict but I tried the script on a new project and the opacity remains the same :/