(2013-03-12, 01:14)ThorC1138 Wrote: Hi, with the work being done for this skin which I'm liking a lot for PTV, I thought I would ask this question here as well which I posed over in the PTV thread re: Channel Logo fading, as I am pretty new to the skinning process..
I'm trying to figure out how to get the channel logo to appear normally at first when you change to a new channel, but then fade out after x seconds...
Going through the xml configs, I'm think I'm getting warmer, and through looking at skins which change it's location, etc, I believe I've identified in the skin files where some of the settings, including any animations are set, but I'm not having any luck with changing the start= and end= fade opacity, or by adding the fadetime /fadetime lines where I think it ought to go..
Has anyone managed to get channel log fading working, and are the controls for the channel logo strictly in the TV overlay file, or is there settings for that elsewhere?
You could try adding <animation effect="fade" start="40" end="40" condition="True">Conditional</animation> in the code with your channel logo, haven't tried it myself but don't know if that would work. I'm assuming you're talking about fading when hitting info right? Setting timing would have to do with messing with the actual python code I'm guessing in the Overlay.py program. Keep in mind, users don't want to have to reinstall and to make the skin future proof you don't want to make changes to the code. Trust me
I do like the idea though and I am probably going to do different things like that with my personal setup. When I have more time, which I seem to be losing these days...
<control type="image"
<description>Channel Logo</description>
<posx>30</posx>
<posy>60</posy>
<width>140</width>
<height>80</height>
<aspectratio>scale</aspectratio>
<animation effect="fade" start="40" end="40" condition="True">Conditional</animation>
</control>
Possible python code that may help, not sure though...
image = Image.open(logo location)
enhancer = ImageEnhance.Brightness(image)
brighter_image = enhancer.enhance(2)
darker_image = enhancer.enhance(0.5)
A little update, I haven't had very much time at all lately due to heavy work load but I managed to get the info closer to what I'm going to go with. I still have a few minor changes to make but I think this weekend it should be ready for full release - assuming I have the time.