View Single Post
06/20/14, 05:43 AM   #4
niocwy
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 11
Originally Posted by Sasky View Post
Haven't tried those. Only thing right off could be what the range for the alpha channel is on the transition.
If it's [0,1] and you treat as [0,100], it'll show as all on then off for example.
It's using the [0,1] range.

I actually got it to work. The problem is not with the function, it works fine. Looks like there's two issues to consider here :

- first, if you're changing the alpha of a parent control using SetAlpha(), then the alpha values set by SetGradientColors() gets overriden.

- also, I was calling the function early in the initialization of my addon, but when I call it at runtime with zgoo, then it works. Considering I was doing this with a test control on which I didn't touch the alpha values of any parents on initialization, I guess that when the UI is loaded something must happen that changes the alpha of the control or its parent to 1.

Last edited by niocwy : 06/20/14 at 05:56 AM.
  Reply With Quote